This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25512] [4.1/4.2 Regression] Overflow not handled in ptr arithmetic folding
- 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: 21 Dec 2005 12:22:39 -0000
- Subject: [Bug middle-end/25512] [4.1/4.2 Regression] Overflow not handled in ptr arithmetic folding
- References: <bug-25512-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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