[llvm-bugs] [Bug 28453] Abort trap: 6 libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 7 14:37:29 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28453
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> ---
Your comparison function (compareStr) does not impose a strict weak ordering on
the strings. Hence the behavior of sort is undefined.
A reasonable discussion can be found here:
https://www.securecoding.cert.org/confluence/display/cplusplus/CTR57-CPP.+Provide+a+valid+ordering+predicate
but your fails two simple tests.
comp(a, a) --> false
comp(a, b) != comp(b, a)
--
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/20160707/dd90545f/attachment.html>
More information about the llvm-bugs
mailing list