diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-08-26 23:40:50 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-08-26 23:40:50 +0000 |
commit | 38c7331af58920357093753c2dd031981ff35dbc (patch) | |
tree | 17d8ac3910cb7cd3771e7e4badf57f6cd45f243b /gcc | |
parent | 723dc4421ede9b84ee5a1c45c04b7b019833933e (diff) | |
download | gcc-38c7331af58920357093753c2dd031981ff35dbc.zip gcc-38c7331af58920357093753c2dd031981ff35dbc.tar.gz gcc-38c7331af58920357093753c2dd031981ff35dbc.tar.bz2 |
* semantics.c (do_poplevel): Always initialize the return value.
From-SVN: r28908
Diffstat (limited to 'gcc')
-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; } |