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