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;