This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21985] [4.0/4.1 Regression] miscompiled or wrong code snippet?
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2005 21:48:49 -0000
- Subject: [Bug middle-end/21985] [4.0/4.1 Regression] miscompiled or wrong code snippet?
- References: <20050609161354.21985.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2005-06-09 21:48 -------
Pointer subtraction is only defined for pointers to the same array object.
So this code has undefined behaviour.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21985