Commit 6fb380f7 by Dmitry Gorbachev Committed by Eric Botcazou

parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE instead of…

parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE instead of inappropriate zero values.

	* parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE
	instead of inappropriate zero values.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r173263
parent 481ae741
2011-05-02 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
Eric Botcazou <ebotcazou@adacore.com>
* parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE
instead of inappropriate zero values.
2011-05-02 Paolo Carlini <paolo.carlini@oracle.com> 2011-05-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47969 PR c++/47969
......
...@@ -14302,7 +14302,7 @@ cp_parser_init_declarator (cp_parser* parser, ...@@ -14302,7 +14302,7 @@ cp_parser_init_declarator (cp_parser* parser,
bool is_non_constant_init; bool is_non_constant_init;
int ctor_dtor_or_conv_p; int ctor_dtor_or_conv_p;
bool friend_p; bool friend_p;
tree pushed_scope = NULL; tree pushed_scope = NULL_TREE;
bool range_for_decl_p = false; bool range_for_decl_p = false;
/* Gather the attributes that were provided with the /* Gather the attributes that were provided with the
...@@ -14609,7 +14609,7 @@ cp_parser_init_declarator (cp_parser* parser, ...@@ -14609,7 +14609,7 @@ cp_parser_init_declarator (cp_parser* parser,
if (pushed_scope) if (pushed_scope)
{ {
pop_scope (pushed_scope); pop_scope (pushed_scope);
pushed_scope = false; pushed_scope = NULL_TREE;
} }
decl = grokfield (declarator, decl_specifiers, decl = grokfield (declarator, decl_specifiers,
initializer, !is_non_constant_init, initializer, !is_non_constant_init,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment