blob: 222082ab79b7678c08fd4c83452104c5c1f37209 [file] [log] [blame]
// PR c++/42057
struct A; // { dg-error "forward declaration" }
struct B
{
virtual B* foo(A);
};
struct C : virtual B
{
virtual C* foo(A) { return 0; } // { dg-error "incomplete type" }
};
C c;