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()); }