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

login
register
mail settings
Submitter Eric Botcazou
Date May 2, 2011, 5:07 p.m.
Message ID <201105021907.09273.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/93687/
State New
Headers show

Comments

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

I've installed the attached patch as obvious.


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.

Patch

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,