This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15764] no cleanup if temporary's dtor terminates with an exception
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2004 18:29:04 -0000
- Subject: [Bug c++/15764] no cleanup if temporary's dtor terminates with an exception
- References: <20040601170320.15764.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-01 18:29 -------
Gee, yes, I can't seem to read code today. Since the lifetime
of the temporary a() is until the end of the expression, the
variable tmp is fully constructed. It needs to be destroyed
again as part of the cleanup to be done when a::~a throws,
but isn't.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15764