diff options
Diffstat (limited to 'gcc/cp/parser.c')
| -rw-r--r-- | gcc/cp/parser.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index e96165b..fede4df 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -11093,6 +11093,9 @@ cp_parser_init_declarator (cp_parser* parser, } /* Parse the initializer. */ + initializer = NULL_TREE; + is_parenthesized_init = false; + is_non_constant_init = true; if (is_initialized) { if (declarator->kind == cdk_function @@ -11104,12 +11107,6 @@ cp_parser_init_declarator (cp_parser* parser, &is_parenthesized_init, &is_non_constant_init); } - else - { - initializer = NULL_TREE; - is_parenthesized_init = false; - is_non_constant_init = true; - } /* The old parser allows attributes to appear after a parenthesized initializer. Mark Mitchell proposed removing this functionality |
