This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61502] == comparison on "one-past" pointer gives wrong result
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Jun 2014 19:29:37 +0000
- Subject: [Bug c/61502] == comparison on "one-past" pointer gives wrong result
- Auto-submitted: auto-generated
- References: <bug-61502-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61502
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Just because two pointers print the same and have the same bit-pattern
doesn't mean they need to compare equal (see the response to DR#260, which
may be presumed to apply to C11 in the absence of relevant textual changes
to make it not apply).