This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH libstdc++] Fix for std::uncaught_exception (PR 62258)
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Michael Hanselmann <public at hansmi dot ch>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 13 Apr 2015 13:28:20 +0100
- 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> <552BB2E1 dot 2080203 at msgid dot hansmi dot ch>
On 13 April 2015 at 13:13, Michael Hanselmann wrote:
> 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.
Yes, thanks for the reminder. I plan to fix it some time this week.