[PATCH libstdc++] Fix for std::uncaught_exception (PR 62258)

Jonathan Wakely jwakely@redhat.com
Mon Apr 27 19:45:00 GMT 2015


On 02/02/15 03:37 +0100, Michael Hanselmann wrote:
>Calls to `std::uncaught_exception` after calling
>`std::rethrow_exception' always return `true' when
>`std::uncaught_exception' should return `false' unless an exception is
>in flight. `std::rethrow_exception' does not update
>`__cxa_eh_globals::uncaughtExceptions' while the following call to
>`__cxa_begin_catch' decrements it. This fixes PR 62258.
>
>The original two-line patch was created by Dmitry Prokoptsev. Michael

>Hanselmann implemented a testcase.

Committed to trunk - thanks for the patch and test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2789 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150427/da41207a/attachment.bin>


More information about the Libstdc++ mailing list