From patchwork Mon May 2 17:07:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Trivial patch to fix build with --enable-build-with-cxx Date: Mon, 02 May 2011 07:07:09 -0000 From: Eric Botcazou X-Patchwork-Id: 93687 Message-Id: <201105021907.09273.ebotcazou@adacore.com> To: Dmitry Gorbachev Cc: gcc-patches@gcc.gnu.org > 2011-05-02 Dmitry Gorbachev > > * parser.c (cp_parser_init_declarator): Replace false by NULL. I've installed the attached patch as obvious. 2011-05-02 Dmitry Gorbachev Eric Botcazou * parser.c (cp_parser_init_declarator): Set pushed_scope to NULL_TREE instead of inappropriate zero values. Index: parser.c =================================================================== --- parser.c (revision 173209) +++ parser.c (working copy) @@ -14302,7 +14302,7 @@ cp_parser_init_declarator (cp_parser* pa 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* pa if (pushed_scope) { pop_scope (pushed_scope); - pushed_scope = false; + pushed_scope = NULL_TREE; } decl = grokfield (declarator, decl_specifiers, initializer, !is_non_constant_init,