blob: b5b02f1019254fa44c01567da5683f17d874ac48 [file] [log] [blame]
// PR c++/59082
struct A {};
struct B : virtual A, A {}; // { dg-error "duplicate base type" }
A foo(const B &b)
{
return b;
}