Minor exception bug with unexpected

ak@muc.de ak@muc.de
Thu Mar 19 17:16:00 GMT 1998

On Thu, Mar 19, 1998 at 04:24:35PM +0100, Alexandre Oliva wrote:
> ak  writes:
> > The appended example dumps core in __check_eh_spec. Although that
> > is legal in CD2 [except.special says "The unexpected() function shall 
> > not return"], it is still not very nice to the user. The patch 
> > makes unexpected() call terminate() in this case.
> I'd rather call abort() instead of terminate().  Calling terminate()
> might cause yet more unexpected results (unavoidable pun, sorry :-)

What unexpected results should it cause? abort is a bit too radical
for my tastes.


More information about the Gcc-bugs mailing list