* parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2011 17:06:49 +0000 (17:06 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2011 17:06:49 +0000 (17:06 +0000)
instead of inappropriate zero values.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173263 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d53c4b3..fc64e7d 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 89100aa..5e3ac70 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,