Patchwork Trivial patch to fix build with --enable-build-with-cxx

login
register
mail settings
Submitter Dmitry Gorbachev
Date May 2, 2011, 2:22 p.m.
Message ID <BANLkTikoJTWretDWEUE-degFj=CHvbo-AA@mail.gmail.com>
Download mbox | patch
Permalink /patch/93666/
State New
Headers show

Comments

Dmitry Gorbachev - May 2, 2011, 2:22 p.m.
Uh, there is another one:

../../gcc-4.7/gcc/cp/parser.c: In function 'tree_node*
cp_parser_init_declarator(cp_parser*, cp_decl_specifier_seq*,
VEC_deferred_access_check_gc*, bool, bool, int, bool*, tree_node**)':
../../gcc-4.7/gcc/cp/parser.c:14612:19: error: converting 'false' to
pointer type 'tree' [-Werror=conversion-null]

2011-05-02  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>

	* parser.c (cp_parser_init_declarator): Replace false by NULL.
Eric Botcazou - May 2, 2011, 2:51 p.m.
> 2011-05-02  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
>
> 	* parser.c (cp_parser_init_declarator): Replace false by NULL.

Replace by NULL_TREE instead and install under the obvious rule.

Patch

--- gcc/cp/parser.c
+++ gcc/cp/parser.c
@@ -14609,7 +14609,7 @@ 
       if (pushed_scope)
 	{
 	  pop_scope (pushed_scope);
-	  pushed_scope = false;
+	  pushed_scope = NULL;
 	}
       decl = grokfield (declarator, decl_specifiers,
 			initializer, !is_non_constant_init,