(component_declarator): Allow attribute after nameless field.

From-SVN: r3100
This commit is contained in:
Richard Stallman 1993-01-05 09:10:17 +00:00
parent ad7c12b244
commit e8f1efb243
1 changed files with 3 additions and 2 deletions

View File

@ -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.