8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/crash37.C
Nathan Sidwell 3d7e9ba41e semantics.c (finish_id_expr): If type is error_mark, return error_mark.
cp:
	* semantics.c (finish_id_expr): If type is error_mark, return
	error_mark.
testsuite:
	* g++.other/crash24.C: Adjust and remove XFAIL.
	* g++.other/crash37.C: New test.

From-SVN: r37702
2000-11-24 09:56:27 +00:00

19 lines
332 B
C

// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 23 Nov 2000 <nathan@codesourcery.com>
// bug 706. We iced when meeting a decl with type error-mark-node
class bifstream;
int main()
{
bifstream bifs; // ERROR - incomplete type
if (!bifs)
{
}
return 0;
}