This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/43365] [4.5 Regression] Destructor not called when returning in exception handler
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2010 23:02:55 -0000
- Subject: [Bug middle-end/43365] [4.5 Regression] Destructor not called when returning in exception handler
- References: <bug-43365-18912@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rth at gcc dot gnu dot org 2010-03-16 23:02 -------
Subject: Bug 43365
Author: rth
Date: Tue Mar 16 23:02:35 2010
New Revision: 157499
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157499
Log:
PR middle-end/43365
* tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
(lower_try_finally): Save and restore eh_seq around the expansion
of the try-finally.
Added:
trunk/gcc/testsuite/g++.dg/eh/pr43365.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-eh.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43365