From af6f30c4652962b9f1fbed8bb098c1cf504e6bce Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 31 Mar 1995 07:26:06 -0500 Subject: [PATCH] (structsp): Correct error in last change. From-SVN: r9270 --- gcc/c-parse.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/c-parse.in b/gcc/c-parse.in index a2a23da9b10..0f8cda161e4 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1325,11 +1325,13 @@ structsp: { $$ = start_struct (UNION_TYPE, $2); } component_decl_list '}' maybe_attribute { $$ = finish_struct ($4, $5); - decl_attributes ($$, $5, NULL_TREE); + decl_attributes ($$, $7, NULL_TREE); } - | UNION '{' component_decl_list '}' + | UNION '{' component_decl_list '}' maybe_attribute { $$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE), - $3); } + $3); + decl_attributes ($$, $5, NULL_TREE); + } | UNION identifier { $$ = xref_tag (UNION_TYPE, $2); } | ENUM identifier '{' -- 2.30.2