Debian Codegraph @

gcc/testsuite/g++.dg/lookup/crash8.C

raw
1 // PR c++/58843
2
3 struct A {};
4
5 template<typename T> void foo(T t)
6 {
7 t.T::~X(); // { dg-error "no type" }
8 }
9
10 void bar()
11 {
12 foo(A());
13 }