[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    [PATCH] Fix -Werror bootstrap problem with gcc 4.1 host compiler
From:       Andi Kleen <ak () suse ! de>
Date:       2007-02-02 16:59:49
Message-ID: 200702021759.49671.ak () suse ! de
[Download RAW message or body]


I needed this patch to bootstrap with a gcc 4.1 host compiler. Otherwise
-Werror would error out because gcc would think bases can be used 
uninitialized.

-Andi

2007-02-02  Andi Kleen  <ak@suse.de>

	* cp/parser.c (cp_parser_class_specifier): Initialize bases.

Index: gcc/cp/parser.c
===================================================================
--- gcc/cp/parser.c	(revision 121493)
+++ gcc/cp/parser.c	(working copy)
@@ -13217,7 +13222,7 @@
   bool saved_in_function_body;
   tree old_scope = NULL_TREE;
   tree scope = NULL_TREE;
-  tree bases;
+  tree bases = NULL_TREE;
 
   push_deferring_access_checks (dk_no_deferred);
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic