This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] fix libstdc++/10606


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]