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/25512] [4.1/4.2 Regression] Overflow not handled in ptr arithmetic folding



------- Comment #1 from rguenth at gcc dot gnu dot org  2005-12-21 12:22 -------
Note that this may be INVALID if we want to treat pointer overflow as
undefined,
as the std doesn't talk about pointer overflow at all.

Using proper (unsigned) integer types for this kind of arithmetic is
recommended anyway.


-- 


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


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