1 //PR C++/27805 2 3 struct A; 4 foo()5 void foo() 6 { 7 int A::* p; 8 A a; // { dg-error "incomplete type" } 9 a.*p; 10 } 11 12