[basic-improvements] try/finally support for c/c++ - more tests

Jason Merrill jason@redhat.com
Thu Nov 7 17:52:00 GMT 2002


On Thu, 07 Nov 2002 17:26:38 -0800, Mark Mitchell <mark@codesourcery.com> wrote:

>> That's why the proposal is about __try/__finally only, not __except
>> where it is e.g. not clear at all what happens if you throw in C++
>> and __except control expression returns -1.
>> At least from what I read in MSFT docs on the web, their __try/__finally
>> matches Aldy's patch.
>
> Except that it also handles asynchronous exceptions, which ours doesn't.
> Where we'd get a SIGFPE you get a structured exception in Microsoft's
> stuff.

That has nothing to do with the semantics of try/finally, which just deals
with cleaning up after whatever exceptions do happen to be thrown.

Jason



More information about the Gcc-patches mailing list