1 2 3 4 5 6 7 8 9 10
// { dg-do assemble } void f () { struct A { friend void g (); // { dg-error "without prior declaration" } }; } void h () { g (); // { dg-error "" } no g in scope }