* semantics.c (do_poplevel): Always initialize the return value.
authorMark Mitchell <mark@codesourcery.com>
Thu, 26 Aug 1999 23:40:50 +0000 (23:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 26 Aug 1999 23:40:50 +0000 (23:40 +0000)
From-SVN: r28908

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

index 0a79ce8e6a8afff75f4bee9dbe4d01c47a8e11cc..08cdc332a4ca4ec6fb57bec4f9a15306e4330129 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 f876272c0a17e346451f4a09a8855239272593c8..6adc5ae48a826cdc6383ff9e40622f36d2140c33 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;
 }