This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33799] Return value's destructor not executed when a local variable's destructor throws
- From: "bitti at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2007 12:21:04 -0000
- Subject: [Bug c++/33799] Return value's destructor not executed when a local variable's destructor throws
- References: <bug-33799-11160@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from bitti at iki dot fi 2007-10-17 12:21 -------
I also tried on other compilers. Sun's compiler (CC: Sun C++ 5.9 SunOS_sparc
Patch 124863-01 2007/07/25) shows the same bug as Gcc. Microsoft Visual Studio
2005 works ok and destroys both objects.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33799