egcs-1.1: new do not throw bad_alloc
Alexandre Oliva
oliva@dcc.unicamp.br
Tue Sep 8 21:44:00 GMT 1998
Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de> writes:
> The operator new don't throw the bad_alloc exception
> if the allocation fails.
Did you set_new_handler() to non-null? In this case, new should keep
retrying to allocate memory and calling the handler, unless the new
handler itself throws.
Are you sure you're linking your program with the proper libgcc and
libstdc++?
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list