aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gorbachev <d.g.gorbachev@gmail.com>2011-05-02 17:06:49 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-05-02 17:06:49 +0000
commit6fb380f70867fe2a693361320ad4e0055d2d2321 (patch)
treef46efe9dbfcef34f6021cdd272347884bc535a87
parent481ae741a8f346ed03a446e75055fe65c88f0e52 (diff)
downloadgcc-6fb380f70867fe2a693361320ad4e0055d2d2321.zip
gcc-6fb380f70867fe2a693361320ad4e0055d2d2321.tar.gz
gcc-6fb380f70867fe2a693361320ad4e0055d2d2321.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/parser.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index d53c4b3..fc64e7d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 89100aa..5e3ac70 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,