This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/10283: operator new does not return null on some windows systems
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, zerovalintine at hotmail dot com
- Date: 1 Apr 2003 14:29:05 -0000
- Subject: Re: libstdc++/10283: operator new does not return null on some windows systems
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, zerovalintine at hotmail dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: operator new does not return null on some windows systems
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Apr 1 14:29:04 2003
State-Changed-Why:
Not a bug. According to the standard, operator new
throws an exception when no more memory is available,
rather than returning NULL. If you want to get NULL
returned, use new(nothrow), or catch the exception.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10283