This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcc/cp/parser.c compilation error
- From: Marco Trudel <mtrudel at gmx dot ch>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 25 Jan 2007 15:41:16 +0100
- Subject: gcc/cp/parser.c compilation error
Hey all
With the current trunk, I need the attached patch to get gcc/cp/parser.c
compiled. Otherwise I get a warning that "bases" might not have been
initialized and compilation stops (with an error).
I don't know why this error occurs. I do not see any recent changes in
parser.c. Maybe someone changed the configuration that warnings should
be treated as errors...
Also I don't know anything about parser.c or if my change is legal. I
just saw the initialization from the other tree objects and decided to
give it a try....
Marco
Index: gcc/cp/parser.c
===================================================================
--- gcc/cp/parser.c (revision 121169)
+++ gcc/cp/parser.c (working copy)
@@ -13217,7 +13217,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);