This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2007 09:44:13 -0000
- Subject: [Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic
- References: <bug-32563-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-08-20 09:44 -------
Which is because...
TREE_OPERAND (pos, 1) = fold_build2 (PLUS_EXPR, itype,
fold_convert (itype,
TREE_OPERAND (pos, 1)),
fold_convert (itype, delta));
fold_convert (itype, -1) generates the overflow as -1 is unsigned and itype
(from TYPE_DOMAIN of the array type) is a signed type.
I'll think about this one.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-08-06 15:44:33 |2007-08-20 09:44:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32563