This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Minor exception bug with unexpected
- To: ak at muc dot de
- Subject: Re: Minor exception bug with unexpected
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 19 Mar 1998 12:24:35 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <19980319034104.25430@fred.muc.de>
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 :-)
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil