aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/crash8.C
blob: 7dce9cb7237630a1511332e0bc632a6b6259a34e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/58843

struct A {};

template<typename T> void foo(T t)
{
  t.T::~X();  // { dg-error "no type" }
}

void bar()
{
  foo(A());
}