From: Dmitry Gorbachev Date: Mon, 2 May 2011 17:06:49 +0000 (+0000) Subject: parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE instead of inappr... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fb380f70867fe2a693361320ad4e0055d2d2321;p=gcc.git 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 From-SVN: r173263 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d53c4b3edc1..fc64e7dd236 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2011-05-02 Dmitry Gorbachev + Eric Botcazou + + * parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE + instead of inappropriate zero values. + 2011-05-02 Paolo Carlini PR c++/47969 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 89100aa2abd..5e3ac70b107 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -14302,7 +14302,7 @@ cp_parser_init_declarator (cp_parser* parser, bool is_non_constant_init; int ctor_dtor_or_conv_p; bool friend_p; - tree pushed_scope = NULL; + tree pushed_scope = NULL_TREE; bool range_for_decl_p = false; /* Gather the attributes that were provided with the @@ -14609,7 +14609,7 @@ cp_parser_init_declarator (cp_parser* parser, if (pushed_scope) { pop_scope (pushed_scope); - pushed_scope = false; + pushed_scope = NULL_TREE; } decl = grokfield (declarator, decl_specifiers, initializer, !is_non_constant_init,