public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43365]  New: [4.5 Regression] Destructor not called when returning in exception handler
@ 2010-03-14 13:55 erik at ejohansson dot se
  2010-03-14 13:58 ` [Bug c++/43365] " erik at ejohansson dot se
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: erik at ejohansson dot se @ 2010-03-14 13:55 UTC (permalink / raw)
  To: gcc-bugs

When returning from a function in an exception handler, the destructor for
objects local to the function is never called.

The attached program returns 0 (as expected) when compiled with:
gcc version 4.4.3 (Debian 4.4.3-3)

The same program returns 1 when compiled with:
gcc version 4.5.0 20100310 (experimental) [trunk revision 157334] (Debian
20100310-1)

Configured with: ../src/configure -v --with-pkgversion='Debian 20100310-1'
--with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs
--enable-languages=c,ada,c++,java,fortran,objc,obj-c++
--prefix=/usr/lib/gcc-snapshot --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --disable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.5-snap/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.5-snap
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.5-snap
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --with-arch-32=i486 --with-tune=generic --disable-werror
--enable-checking=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu


-- 
           Summary: [4.5 Regression] Destructor not called when returning in
                    exception handler
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: erik at ejohansson dot se
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43365


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-06-14  6:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-14 13:55 [Bug c++/43365] New: [4.5 Regression] Destructor not called when returning in exception handler erik at ejohansson dot se
2010-03-14 13:58 ` [Bug c++/43365] " erik at ejohansson dot se
2010-03-14 17:27 ` hjl dot tools at gmail dot com
2010-03-15 10:39 ` rguenth at gcc dot gnu dot org
2010-03-15 13:14 ` [Bug middle-end/43365] " rguenth at gcc dot gnu dot org
2010-03-15 18:53 ` rth at gcc dot gnu dot org
2010-03-16 23:03 ` rth at gcc dot gnu dot org
2010-03-17 15:24 ` rguenth at gcc dot gnu dot org
2010-04-12 20:50 ` erik at ejohansson dot se
2010-06-14  6:58 ` ian at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).