[Bug c++/55446] array new with size zero vanishes from object code

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Sat Nov 24 00:30:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55446

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-24 00:30:40 UTC ---
build_new_1, called by build_new, returns error_mark_node.

This happens because something goes very badly wrong in the cp_build_binary_op
call around line 2712: essentially it computes 0 - 1!



More information about the Gcc-bugs mailing list