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;