Debian Codegraph @

gcc/testsuite/g++.dg/lookup/ambig6.C

raw
1 // PR c++/103177
2
3 struct B1 {
4 private:
5 static int foo();
6 };
7
8 struct B2 {
9 int foo();
10 };
11
12 struct D : B1, B2 { };
13
14 void f() {
15 D d;
16 d.foo(); // { dg-error "ambiguous" }
17 // { dg-bogus "private" "" { target *-*-* } .-1 }
18 }