Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
virtual1.C
blob: ed597e2a3d7ff69ce39a481155963211932404bd [
file
] [
log
] [
blame
]
// PR c++/27952
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
A
,
virtual
A
{};
// { dg-error "duplicate base" }
struct
C
:
A
,
B
{};
// { dg-message "direct base 'A' inaccessible" }
C c
;