Commit 27f9a7c6 by Mark Mitchell Committed by Mark Mitchell

* parse.y (component_decl_list): Improve error-recovery.

From-SVN: r22551
parent 04ddee1b
1998-09-22 Mark Mitchell <mark@markmitchell.com>
* parse.y (component_decl_list): Improve error-recovery.
1998-09-22 Benjamin Kosnik <bkoz@loony.cygnus.com>
* decl.c (make_typename_type): Move error to point where name
......
......@@ -2402,7 +2402,8 @@ component_decl_list:
in this binding level. Make sure that the chain
of what we're trying to add isn't the item itself
(which can happen with what pushdecl's doing). */
if ($2 != NULL_TREE && $2 != void_type_node)
if ($2 != NULL_TREE && $2 != void_type_node
&& $2 != error_mark_node)
{
if (TREE_CHAIN ($2) != $$)
$$ = chainon ($$, $2);
......
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