[PR c++/84962] ICE with anon-struct member
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / pr84962.C
blobee801c247bcabffda300fd8e3ade94eafd7e8574
1 // PR c++/84952 ICE with anon-struct having member fns
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -Wno-pedantic }
5 struct X {
6   struct 
7   {
8     template <typename> int a ();
9     // { dg-error "can only have" "" { target *-*-* } .-1 }
10   };
12   int  : a; // { dg-error "non-integral" }