diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cp/semantics.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0a79ce8..08cdc33 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1999-08-26 Mark Mitchell <mark@codesourcery.com> + + * semantics.c (do_poplevel): Always initialize the return value. + 1999-08-26 Gavin Romig-Koch <gavin@cygnus.com> * cp-tree.h (cplus_unsave_expr_now) : Correct return type. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index f876272..6adc5ae 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1073,6 +1073,8 @@ do_poplevel () 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; } |
