3d7e9ba41e
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
19 lines
332 B
C
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;
|
|
}
|