1 // PR c++/13140 2 3 struct foo { 4 foo(); 5 void f(); 6 static int i; 7 }; 8 9 10 namespace bar { foo()11 foo::foo() {} // { dg-error "namespace" } f()12 void foo::f() {} // { dg-error "namespace" } 13 int foo::i; // { dg-error "namespace" } 14 } 15