* decl2.c (grokfield): Bail out if type is error_mark_node.

From-SVN: r32582
This commit is contained in:
Nathan Sidwell 2000-03-16 10:13:28 +00:00 committed by Nathan Sidwell
parent 1202035d01
commit 5add10fd81
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-03-16 Nathan Sidwell <nathan@codesourcery.com>
* decl2.c (grokfield): Bail out if type is error_mark_node.
2000-03-15 Nathan Sidwell <nathan@codesourcery.com>
* tinfo2.cc (__ptr_to_member_data): Rename to ...

View File

@ -1593,6 +1593,8 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist)
if (! value || value == error_mark_node)
/* friend or constructor went bad. */
return value;
if (TREE_TYPE (value) == error_mark_node)
return error_mark_node;
/* Pass friendly classes back. */
if (TREE_CODE (value) == VOID_TYPE)