blob: 77fa75d19945bc81e3349689d73dd981305dad76 [file] [log] [blame]
//PR c++/28740
struct A { virtual ~A(); };
struct B : A A {}; // { dg-error "'A'|function definition|extra" }
A foo(const B &b)
{
return b; // { dg-error "conversion" }
}