struct Foo { template ~Foo() {} // { dg-error "" } }; int main() { Foo f; }