[LLVMbugs] [Bug 19863] suspicious code in nth_element test

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 2 08:32:37 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19863

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Marshall Clow (home) <mclow.lists at gmail.com> ---
This code was added as a response to LWG issue #2239, which clarified that
nth_element(begin, end, end) was a valid set of inputs (and should do nothing).

The call here shouldn't crash. (even under Address Sanitizer, etc)

You can't test that array[N] == N, because the array is only N elements long
:-)

-- 
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/20140602/4f5e4892/attachment.html>


More information about the llvm-bugs mailing list