[Bug tree-optimization/124968] tree-chrec.cc: 120: Possible cut'n'paste error ?

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 21 15:48:48 GMT 2026


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
rtype is type except when code is POINTER_PLUS_EXPR .

  tree rtype = code == POINTER_PLUS_EXPR ? chrec_type (poly1) : type;

So the code is correct and there is no bug.

And this was not a copy and paste error, the code was originally only type,
rtype was added afterwards when POINTER_PLUS_EXPR  was added.


More information about the Gcc-bugs mailing list