This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/10606] uncaught_exception() returns false too early
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2004 00:49:35 -0000
- Subject: [Bug libstdc++/10606] uncaught_exception() returns false too early
- References: <20030502212600.10606.sebor@roguewave.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sebor at roguewave dot com 2004-11-03 00:49 -------
FWIW, if you missed it there was a discussion of this issue
on c++std-core@accu.org, starting with c++std-core-10643. Mike
Miller said he'd open an issue for it. I don't see it on the
list yet but I assume it will be in in the post-Redmond mailing.
AFAIK, he plans to push for the EDG behavior (but not that of
Intel C++). If it's accepted the output of the original test
case would be required to be (note that the value is already
true in the copy ctor):
S::S() [0]: uncaught_exception() = 0
t.cpp(32): throw: uncaught_exception() = 0
S::S(const S& [0]) [1]: uncaught_exception() = 1
S::~S() [0]: uncaught_exception() = 1
S::S(const S& [1]) [2]: uncaught_exception() = 1
t.cpp(36): catch: uncaught_exception() = 0
S::~S() [2]: uncaught_exception() = 1
S::S(const S& [1]) [3]: uncaught_exception() = 1
t.cpp(42): catch: uncaught_exception() = 0
S::~S() [3]: uncaught_exception() = 0
S::~S() [1]: uncaught_exception() = 0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10606