summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-09-22 23:08:27 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-09-22 23:08:27 +0000
commit799d90d78547c86679d659d2fe2fbcb98d4969e6 (patch)
treedf6134da894a8c968b006278828ac9c9a337876b /gcc/c-parse.in
parentb567e3d5ffd2b4771925843d78d3cacee1ad26e1 (diff)
downloadgcc-799d90d78547c86679d659d2fe2fbcb98d4969e6.tar.gz
(enumlist): Propagate error_mark_node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10396 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 4d63f615609..044e4523249 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -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; }
;