Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
virtual12.C
blob: 3e96d2e1e742df8927c1fcca03a73864a178f482 [
file
] [
log
] [
blame
]
// PR c++/70202
union
U
{
};
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
A
,
virtual
U
{
};
// { dg-error "base type 'U' fails" }
struct
C
:
A
,
B
{};
// { dg-message "direct base 'A' inaccessible" }
C c
;