[llvm-bugs] [Bug 26269] Quick sort return false result

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 23 09:04:51 PST 2016


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
polar_angle_cmp is not a strict weak order. For instance, polar_angle_cmp(orig,
orig) returns true. (Your use of 'pd' would also stop this from being a strict
weak order, but the problem case doesn't arise in your testcase because 'pd' is
never passed a number whose absolute value is less than Eps and nonzero).

-- 
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/20160123/1144896b/attachment.html>


More information about the llvm-bugs mailing list