1 // PR c++/39054 2 3 struct A {}; 4 foo()5 template<typename> void foo() 6 { 7 A().~int(); // { dg-error "expected" } 8 } 9