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 Thu, May 01, 2003 at 01:16:53AM -0300, Alexandre Oliva wrote:
> On Apr 30, 2003, Jason Merrill <jason@redhat.com> 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.
> 
> How about, instead of terminate(), a function that rethrows the
> cancellation?

No, that's a default, invisible change to exception semantics.

User code that doesn't re-throw generally doesn't for serious reasons. 
If it's the wrong reason, they need to find out, not just silently 
have their process state silently corrupted.

Nathan Myers
ncm@cantrip.org


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