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: [3.3] Followup to C++ forced unwinding


On Wed, Apr 30, 2003 at 10:24:24PM -0400, Jason Merrill wrote:
> Actually, I have an idea for how to DTRT here: give terminate() as the
> destructor for the exception object in the forced unwind case.  So if the
> catch(...) block rethrows, all is good, but if we exit the catch block some
> other way, we try to clean up the exception, which calls terminate.

Oh, cool.  This is a *much* nicer idea than I was contemplating.
Yes, I can agree to this.  Uli, does this satisfy?


r~


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