1 // PR c++/35109
2
3 struct C;
f()4 void f() {
5 struct A {
6 friend struct B;
7 friend struct C;
8 void g()
9 {
10 B *b; // { dg-error "not declared" }
11 C* c; // OK, finds ::C
12 }
13 };
14 C *c; // OK, finds ::C
15 struct B {};
16 B *b; // OK, now it isn't hidden
17 }
18