blob: 87d7d40b913847b682303ebafb355944e9794b51 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O2" }
struct A
{
A p; // { dg-error "incomplete" }
virtual void foo();
};
struct B : A {};
void bar(B& b)
{
b.foo();
}