summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash40.C
blob: 45123dd0d0576b0228206404ef796e88c41005eb (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/22180

struct A {};

template<typename T> void foo()
{
  T::~T(); // { dg-error "member" }
}

template void foo<A>(); // { dg-message "instantiated" }