This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] C++ vs forced unwinding
On Thu, 2003-04-10 at 18:04, Richard Henderson wrote:
> On Thu, Apr 10, 2003 at 05:29:21PM -0700, Mark Mitchell wrote:
> > > What about `catch (...)', which can catch any exception?
> > > Or are you suggesting that C++'s `catch (...)' should only
> > > be able to catch C++ exceptions, not exceptions from some other language?
> >
> > I wasn't trying to make a suggestion about that. I don't know what the
> > current behavior is.
>
> Current behaviour is that the exception is caught.
Seems like the right thing.
Does POSIX say anything about thread cleanup functions that don't
return? (That's essentially what will happen if the "catch (...)"
clause decides not to rethrow.)
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com