Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Winaccessible-virtual-base-2.C
blob: eab9ec0e3d7cbfcf6c4af1da6dfbd82de2e2510f [
file
] [
log
] [
blame
]
// PR c++/90449
// { dg-options "-Wextra -Wno-inaccessible-base" }
struct
A
{
};
struct
B
:
virtual
A
{
};
struct
C
:
A
{
};
struct
D
:
B
,
C
{
};
// { dg-bogus "virtual base 'A' inaccessible in 'D' due to ambiguity" }