1 // { dg-do assemble } 2 3 // Copyright (C) 2000 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com> 5 6 // Bug 611. We ICEd when calling a member function returning an incomplete 7 // type by value. 8 9 struct X; // { dg-message "" } forward ref 10 11 struct Y 12 { 13 X foo (); 14 }; 15 baz(Y * p)16void baz (Y *p) 17 { 18 p->foo (); // { dg-error "" } incomplete 19 } 20