diff options
Diffstat (limited to 'gcc/cp/parse.y')
-rw-r--r-- | gcc/cp/parse.y | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 278e595a7af..cf750e1e0e2 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -2108,6 +2108,14 @@ nomods_initdcl0: d = start_decl ($1, current_declspecs, 0); cplus_decl_attributes (d, $3, prefix_attributes); cp_finish_decl (d, NULL_TREE, $2, 1, 0); } + | constructor_declarator maybeasm maybe_attribute + { tree d; + current_declspecs = NULL_TREE; + prefix_attributes = NULL_TREE; + $$ = suspend_momentary (); + d = start_decl ($1, current_declspecs, 0); + cplus_decl_attributes (d, $3, prefix_attributes); + cp_finish_decl (d, NULL_TREE, $2, 1, 0); } ; /* the * rules are dummies to accept the Apollo extended syntax |