[Bug c++/53330] new() operator can return NULL on a zero-length allocation

kilobyte at angband dot pl gcc-bugzilla@gcc.gnu.org
Fri Mar 29 13:21:00 GMT 2013


--- Comment #3 from Adam Borowski <kilobyte at angband dot pl> 2013-03-29 13:20:53 UTC ---
* gcc-4.7.2 works on amd64, armhf, x32, fails on i386
* gcc-4.8.0 works on all of the above
(all Debian)

So it appears to be fixed in 4.8, at least on architectures I tried. 
Regardless of whether you'll fix it in 4.7 or not, it may be worth adding to
the test suite.

More information about the Gcc-bugs mailing list