* semantics.c (do_poplevel): Always initialize the return value.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Aug 1999 23:40:50 +0000 (23:40 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Aug 1999 23:40:50 +0000 (23:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28908 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 0a79ce8..08cdc33 100644 (file)
@@ -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.
index f876272..6adc5ae 100644 (file)
@@ -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;
 }