1 2 3 4 5 6 7 8 9 10 11 12 13
// PR c++/32870 struct Foo { struct Bar; }; namespace N { struct Foo::Bar { }; // { dg-error "in namespace 'N'" } } struct Baz { struct Foo::Bar { }; // { dg-error "in 'struct Baz'" } };