This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13944] [3.3/3.4/3.5 Regression] exception in constructor of a class to be thrown is not caught
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2004 18:22:18 -0000
- Subject: [Bug c++/13944] [3.3/3.4/3.5 Regression] exception in constructor of a class to be thrown is not caught
- References: <20040131120212.13944.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jason at redhat dot com 2004-02-16 18:22 -------
Subject: Re: [3.3/3.4/3.5] exception in constructor of a
class to be thrown is not caught
EDG performs this same optimization, but they seem to have made a different
choice as to whether or not the call which creates the object should be
allowed to throw; it seems impossible to construct a testcase which will
terminate due to a throw during the initialization of the exception object.
Their choice, which the submitter of this bug also expects, seems
reasonable to me.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13944