From: mmitchel Date: Fri, 29 Oct 1999 02:34:31 +0000 (+0000) Subject: * semantics.c (finish_handler): End the scope of the handler X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=637be39f421b23c745f14f52d76daf974cc93460;p=platform%2Fupstream%2Flinaro-gcc.git * semantics.c (finish_handler): End the scope of the handler before attaching it to the statement-tree. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30250 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 96262b4..38e90b2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-10-28 Mark Mitchell + + * semantics.c (finish_handler): End the scope of the handler + before attaching it to the statement-tree. + 1999-10-28 Ian Lance Taylor * rtti.c (build_dynamic_cast_1): Give a better error message for diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index de6cd08..d0a30ba 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -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