diff options
Diffstat (limited to 'gcc')
-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. |