This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH libstdc++] Fix for std::uncaught_exception (PR 62258)
- From: Michael Hanselmann <public at hansmi dot ch>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 13 Apr 2015 14:13:21 +0200
- Subject: Re: [PATCH libstdc++] Fix for std::uncaught_exception (PR 62258)
- Authentication-results: sourceware.org; auth=none
- References: <5f7f8711e5f9f1cdbbd63a00f6d11a3766eb2765 dot 1422844158 dot git dot public at hansmi dot ch> <CAH6eHdR1eExhUz7qeE_de_akTBF2_GJLFochWsEX2e5yz-rChw at mail dot gmail dot com>
On 02.02.2015 12:03, Jonathan Wakely wrote:
> On 2 February 2015 at 02:37, 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 patch looks correct, but I think it can wait until the trunk
> reopens after the GCC 5 release.
I presume that's the case now that the GCC 5 branch has been created.