[Bug tree-optimization/115191] [15 regression] ICE when building stklos (in verify_range, at value-range.cc:1526)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 22 20:31:25 GMT 2024


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-05-22

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

                      /* After the optimization PHI result can have value
                         which it couldn't have previously.  */
                      int_range_max r;
                      if (get_global_range_query ()->range_of_expr (r, phires,
                                                                    phi))


Yes int_range_max here is almost definitely wrong for pointer types.
Note this code is originally from r13-4878-g3d6bb832022160 .


More information about the Gcc-bugs mailing list