// PR c++/39054 struct A {}; template void foo() { A().~int(); // { dg-error "expected" } }