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

Submitted by Dmitry Gorbachev on May 2, 2011, 2:22 p.m.

Details

Message ID BANLkTikoJTWretDWEUE-degFj=CHvbo-AA@mail.gmail.com
State New
Headers show

Commit Message

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.

Comments

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 hide | download patch | download mbox

--- 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,