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