blob: fad508a5d2fc7fac0ef50fd000e4f013ae68625e [file] [log] [blame]
// PR c++/33460
struct A
{
struct
{ // { dg-error "3:ISO C\\+\\+ prohibits anonymous structs" }
struct { static int i; }; // { dg-error "prohibits anonymous structs|non-static data members|unnamed class" }
void foo() { i; } // { dg-error "public non-static data" }
};
};