blob: 7dce9cb7237630a1511332e0bc632a6b6259a34e [file] [log] [blame]
// PR c++/58843
struct A {};
template<typename T> void foo(T t)
{
t.T::~X(); // { dg-error "no type" }
}
void bar()
{
foo(A());
}