Commit 5add10fd by Nathan Sidwell Committed by Nathan Sidwell

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

From-SVN: r32582
parent 1202035d
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 ...
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment