This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 'new' behavior when malloc() fails
- To: David Whedon <dwhedon at gordian dot com>
- Subject: Re: 'new' behavior when malloc() fails
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 27 Feb 2001 19:20:40 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010226231737.A49088@ogun.gordian.com>
On Feb 27, 2001, David Whedon <dwhedon@gordian.com> wrote:
> Sometimes the calls to __builtin_new (g++ generates these calls)
> return NULL
IIRC, only old releases of GCC do. Newer releases have the behavior
dictated by the C++ Standard, which is to throw an exception.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me