libstdc++/10283: operator new does not return null on some windows systems
bangerth@dealii.org
bangerth@dealii.org
Tue Apr 1 14:29:00 GMT 2003
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
More information about the Gcc-bugs
mailing list