[Bug middle-end/25512] [4.1/4.2 Regression] Overflow not handled in ptr arithmetic folding
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 21 12:22:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list