blob: 4f6866ed8eed381185a989ff6c6137468cc38843 [file] [log] [blame]
//PR c++/28740
struct A { virtual ~A(); };
struct B : A A {}; // { dg-error "expected|initializer|invalid" }
A foo(const B &b) // { dg-error "" }
{
return b;
}