blob: 658cbe113fc8b72af2d0170a992e9035c2b3c1f8 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed gb scope
struct C {
struct D {
int x;
void foo ();
};
const int Ok = 0; // { dg-error "" "" { target { ! c++11 } } } initialization forbidden
};
void C::D::foo ()
{
x = Ok; // { dg-error "non-static" }
}