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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2004 17:13:35 -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 pinskia at gcc dot gnu dot org 2004-06-01 17:13 -------
b b_ (f ());
b is not initialized when ~a throws as it is equivant to
int i;
{
const a &c= a();
i = f(c);
}
b b_ (i);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15764