Bug: C++ cp/semantics.c
Mark Mitchell
mark@codesourcery.com
Tue Aug 31 22:45:00 GMT 1999
Fixed with this patch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
1999-08-26 Mark Mitchell <mark@codesourcery.com>
* semantics.c (do_poplevel): Always initialize the return value.
Index: semantics.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/semantics.c,v
retrieving revision 1.64
diff -c -p -r1.64 semantics.c
*** semantics.c 1999/08/25 22:07:16 1.64
--- semantics.c 1999/08/26 23:37:12
*************** do_poplevel ()
*** 1073,1078 ****
--- 1073,1080 ----
expand_end_bindings (getdecls (), kept_level_p (), 0);
if (stmts_are_full_exprs_p)
t = poplevel (kept_level_p (), 1, 0);
+ else
+ t = NULL_TREE;
pop_momentary ();
return t;
}
More information about the Gcc-bugs
mailing list