// PR c++/39225 template class A { public: A() {} ~B() {} // { dg-error "~B" } }; int main() { A *a = new A; return 0; }