// { 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" } }