2 // Test that referring to an ambiguous base in name lookup prevents
3 // access to the field, even though the field is not ambiguous.
9 struct B: virtual A { };
10 struct C: public B { };
11 struct D: public B { };
12 struct E: public C, public D {
17 B::i = 0; // { dg-error "" } B is ambiguous
22 e.B::i = 0; // { dg-error "" } B is ambiguous