[Bug tree-optimization/94131] [10 Regression] ICE: tree check: expected integer_cst, have plus_expr in get_len, at tree.h:5927 since r10-2814-g22fca489eaf98f26

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 11 21:40:08 GMT 2020


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Keywords|ice-on-invalid-code         |ice-on-valid-code
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The code looks valid to me.  It may be undefined because of the missing
initialization but with the VLA initialized the ICE is still there because the
function isn't prepared to deal with the VLA's non-constant bound.


More information about the Gcc-bugs mailing list