diff options
author | Richard Stallman <rms@gnu.org> | 1993-01-05 09:10:17 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-01-05 09:10:17 +0000 |
commit | e8f1efb243fa6f62e5e989fd821fa93e5dcc5b0a (patch) | |
tree | 150f04394f57d60806aa331714c36a87b57ca8fb /gcc/c-parse.in | |
parent | ad7c12b244480c93ec47e9a33ed84627792442cc (diff) | |
download | gcc-e8f1efb243fa6f62e5e989fd821fa93e5dcc5b0a.zip gcc-e8f1efb243fa6f62e5e989fd821fa93e5dcc5b0a.tar.gz gcc-e8f1efb243fa6f62e5e989fd821fa93e5dcc5b0a.tar.bz2 |
(component_declarator): Allow attribute after nameless field.
From-SVN: r3100
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index c96d0b3..c677b20 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1291,8 +1291,9 @@ component_declarator: declarator ':' expr_no_commas maybe_attribute { $$ = grokfield ($1, $2, $3, current_declspecs, $5); decl_attributes ($$, $6); } - | save_filename save_lineno ':' expr_no_commas - { $$ = grokfield ($1, $2, NULL_TREE, current_declspecs, $4); } + | save_filename save_lineno ':' expr_no_commas maybe_attribute + { $$ = grokfield ($1, $2, NULL_TREE, current_declspecs, $4); + decl_attributes ($$, $5); } ; /* We chain the enumerators in reverse order. |