[Bug c++/69220] Internal error with array of negative size and initializers for it

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 19 15:28:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69220

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This was fixed in r230081:

commit d5a9b16d1a96dbeae92cfb2acc1ba023dcef0eb0
Author: msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Tue Nov 10 02:23:34 2015 +0000

    PR c++/67913 - new expression with negative size not diagnosed
    PR c++/67927 - array new expression with excessive number of elements
                   not diagnosed

I don't think we'll want to backport this, so closing.


More information about the Gcc-bugs mailing list