This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19854


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]