[rfc] fix libstdc++/10606

Mark Mitchell mark@codesourcery.com
Tue Jan 4 18:30:00 GMT 2005


Richard Henderson wrote:
> On Tue, Dec 28, 2004 at 11:09:02PM +0100, Paolo Carlini wrote:
> 
>>I'm forwarding below some comments that Martin (PR submitter and
>>author of the relevant DR) sent me privately:
>>
>>"From the data array it seems that Richard chose to implement a slightly
>>different behavior than what's being proposed in issue 475:
>>http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#475
>>According to bullet (4) of the proposed resolution, data[1] in the
>>test program should be { 1, 0, true }. I.e., uncaught_exception()
>>should return true immediately after completing the evaluation of
>>the operand of throw.
> 
> 
> If that's the semantics we want, I suppose it would be possible to
> increment the unhandled exception count in __cxa_allocate_exception.
> 
> It would make me feel better if this were'nt an open DR though.

Me too -- but your change is clearly an improvement over the current 
state.  I guess I'd only be concerned if you thought it was going to be 
impossible to implement the likely outcome of the DR without adding yet 
another API function.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Libstdc++ mailing list