This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1: new do not throw bad_alloc
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