// PR c++/22180 struct A {}; template void foo() { T::~T(); // { dg-error "member" } } template void foo(); // { dg-message "instantiated" }