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 debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic



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


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