This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/62258] New: uncaught_exception() equals to `true' after rethrow_exception()
- From: "dprokoptsev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Aug 2014 18:06:12 +0000
- Subject: [Bug libstdc++/62258] New: uncaught_exception() equals to `true' after rethrow_exception()
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62258
Bug ID: 62258
Summary: uncaught_exception() equals to `true' after
rethrow_exception()
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dprokoptsev at gmail dot com
After using std::rethrow_exception() (and catching the exception), all
subsequent calls to std::uncaught_exception() return `true', which is obviously
not the way it was meant to work.
A simple test case is attached.