[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / anon-struct5.C
blobec022251cbf57f7bf7d8151b204312d88866ee58
1 // PR c++/30302
3 struct A
5   struct { static int i; }; // { dg-error "prohibits anonymous structs|an anonymous struct|unnamed class" }
6   void foo() { i; }
7 };
9 struct B
11   union { static int i; }; // { dg-error "an anonymous union|member of a union|unnamed class" }
12   void foo() { i; }