[Bug middle-end/19854] [4.0 Regression] ICE with folding &a[i1] + c * i2 to &a[i1 + i2] messing up types

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 9 23:47:00 GMT 2005

------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-09 18:37 -------
Fixed by:
2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>

        PR middle-end/19854
        * fold-const.c (try_move_mult_to_index): Remove redundant
        type argument.  Create ADDR_EXPR with correct type.
        (fold): Update callers of try_move_mult_to_index.  Convert
        result to the appropriate type.



More information about the Gcc-bugs mailing list