OSDN Git Service

fix
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / crash38.C
1 // Build don't link:
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;   // ERROR - forward ref
10
11 struct Y
12 {
13   X foo ();
14 };
15
16 void baz (Y *p)
17 {
18   p->foo ();    // ERROR - incomplete
19 }