[llvm-bugs] [Bug 13507] Miscompiled one-past-the-end pointer comparison

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 3 15:09:16 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=13507

James Y Knight <jyknight at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED
                 CC|                            |jyknight at google.com

--- Comment #4 from James Y Knight <jyknight at google.com> ---
This was fixed a while back, so marking as dup of that issue.

Author: Richard Smith <richard-llvm at metafoo.co.uk>
Date:   Tue Oct 21 23:01:04 2014 +0000

    PR21327 / C++ DR1652 / C++ DR73: comparing a past-the-end pointer for one
    complete object to a pointer to the start of another complete object does
    not evaluate to the constant 'false'. All other comparisons between the
    addresses of subobjects of distinct complete objects still do.

    llvm-svn=220343

*** This bug has been marked as a duplicate of bug 21327 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180503/642be116/attachment.html>


More information about the llvm-bugs mailing list