Debian Codegraph @

gcc/testsuite/g++.dg/template/pseudodtor4.C

raw
1 // PR c++/34068
2 // { dg-do compile }
3
4 template <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
10 A <int> a;