Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
ambig6.C
blob: eeef45e64148ef2d74b2514bddd190daf864caba [
file
] [
log
] [
blame
]
// PR c++/103177
struct
B1
{
private
:
static
int
foo
();
};
struct
B2
{
int
foo
();
};
struct
D
:
B1
,
B2
{
};
void
f
()
{
D d
;
d
.
foo
();
// { dg-error "ambiguous" }
// { dg-bogus "private" "" { target *-*-* } .-1 }
}