1 // PR c++/58811 2 3 struct B 4 { 5 struct A a; // { dg-error "incomplete type" } 6 }; 7 foo()8 void foo() 9 { 10 B(); 11 } 12