1 // PR c++/34068 2 // { dg-do compile } 3 4 template <typename> struct A 5 { 6 typedef int X; AA7 A () { T (). ~X (); } // { dg-error "there are no arguments to|fpermissive|was not declared in this scope" } 8 }; 9 10 A <int> a; 11