[LLVMbugs] [Bug 17147] New: __debug_less() does not support heterogeneous comparator
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Sep 7 04:25:15 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17147
Bug ID: 17147
Summary: __debug_less() does not support heterogeneous
comparator
Product: libc++
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: devlists at shadowlab.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Actually, the __debug_less implementation try to check if a comparator forces
"a strict weak ordering".
Unfortunately, this check is broken for heterogenous comparator, which are
supported by methods like std::lower_bound.
It tries to call the comparator with the arguments in reverse order, and so
prevent compilation of such valid code.
--
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/20130907/5a60d49a/attachment.html>
More information about the llvm-bugs
mailing list