Commit a0d074e1 by Richard Kenner

(enumlist): Propagate error_mark_node.

From-SVN: r10396
parent 1e5b2303
......@@ -1490,7 +1490,10 @@ component_declarator:
enumlist:
enumerator
| enumlist ',' enumerator
{ $$ = chainon ($3, $1); }
{ if ($1 == error_mark_node)
$$ = $1;
else
$$ = chainon ($3, $1); }
| error
{ $$ = error_mark_node; }
;
......
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