1 // PR c++/60385 2 3 float foo4(); // { dg-message "previous declaration" } 4 5 namespace foo4 // { dg-error "redeclared" } 6 { 7 struct bar6 8 { 9 friend wchar_t bar1(); 10 }; 11 } 12