]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
semantics.c (finish_handler): End the scope of the handler before attaching it to...
authorMark Mitchell <mark@codesourcery.com>
Fri, 29 Oct 1999 02:34:31 +0000 (02:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 29 Oct 1999 02:34:31 +0000 (02:34 +0000)
* semantics.c (finish_handler): End the scope of the handler
before attaching it to the statement-tree.

From-SVN: r30250

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

index 96262b42d06b92486e3fa38db353c9448a73e586..38e90b2f3e75d70f77bde0dfab24a91e745c0306 100644 (file)
@@ -1,3 +1,8 @@
+1999-10-28  Mark Mitchell  <mark@codesourcery.com>
+
+       * semantics.c (finish_handler): End the scope of the handler
+       before attaching it to the statement-tree.
+
 1999-10-28  Ian Lance Taylor  <ian@zembu.com>
 
        * rtti.c (build_dynamic_cast_1): Give a better error message for
index de6cd08015c904edc46442e91d2219dc679f5bdf..d0a30ba79e374f1cc5b0910d1b176559c3183c7f 100644 (file)
@@ -887,10 +887,10 @@ finish_handler (blocks, handler)
        }
     }
 
+  do_poplevel ();
+
   if (building_stmt_tree ())
     RECHAIN_STMTS (handler, HANDLER_BODY (handler));
-
-  do_poplevel ();
 }
 
 /* Begin a compound-statement.  If HAS_NO_SCOPE is non-zero, the