[PATCH] Fix std::uncaught_exception() to return true during exception initialization

Mark Seaborn mseaborn at chromium.org
Wed Dec 11 13:06:12 PST 2013


On 9 December 2013 13:42, Mark Seaborn <mseaborn at chromium.org> wrote:

> Hi howard.hinnant,
>
> Fix std::uncaught_exception() to return true during exception
> initialization
>
> std::uncaught_exception() should return true during the call to the
> copy constructor that "throw X" does to initialize the exception
> object after the expression X has been evaluated (or during the call
> to the normal constructor if the compiler has done copy elision).
>
> Fix this by incrementing uncaughtExceptions earlier, in
> __cxa_allocate_exception() rather than in __cxa_throw().
>
> This fixes PR18193.
>
> http://llvm-reviews.chandlerc.com/D2366


Ping.  Can you review this change, please, Howard, or suggest who else
might be a suitable reviewer?

Cheers,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131211/20e165e6/attachment.html>


More information about the cfe-commits mailing list