Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash38.C
blob87e55556128cf87b0d637169bc7aa751d133fe03
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com>
6 // Bug 611. We ICEd when calling a member function returning an incomplete
7 // type by value.
9 struct X;   // { dg-message "" } forward ref
11 struct Y
13   X foo ();
16 void baz (Y *p)
18   p->foo ();    // { dg-error "" } incomplete