This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/19854] [4.0 Regression] ICE with folding &a[i1] + c * i2 to &a[i1 + i2] messing up types
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2005 18:37:16 -0000
- Subject: [Bug middle-end/19854] [4.0 Regression] ICE with folding &a[i1] + c * i2 to &a[i1 + i2] messing up types
- References: <20050209142327.19854.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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