blob: 5faab45b5706b68d8507a7f2681677de12d2b3c2 [file] [log] [blame]
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com>
// Bug 611. We ICEd when calling a member function returning an incomplete
// type by value.
struct X; // ERROR - forward ref
struct Y
{
X foo ();
};
void baz (Y *p)
{
p->foo (); // ERROR - incomplete
}