parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE instead of inappr...
authorDmitry Gorbachev <d.g.gorbachev@gmail.com>
Mon, 2 May 2011 17:06:49 +0000 (17:06 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 2 May 2011 17:06:49 +0000 (17:06 +0000)
* 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

gcc/cp/ChangeLog
gcc/cp/parser.c

index d53c4b3edc18fca358593523a86170d5efe3e26e..fc64e7dd2363285e19168ba4d070429fd208b60d 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR c++/47969
index 89100aa2abd463b2707ad4430b928cb44fdef3cb..5e3ac70b107f0ebc48fae75ade2badc02a7f307f 100644 (file)
@@ -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,