blob: 08bcbb143cfb0a0557f4286587d1ec7f40599bcd [file] [log] [blame]
//PR c++/27952
struct A
{
virtual ~A() {}
};
struct B : A, virtual A {}; // { dg-error "duplicate base|forward declaration" }
struct C : A, B {}; // { dg-error "duplicate base|invalid use" }
C c; // { dg-error "aggregate" }