[llvm-bugs] [Bug 52192] New: Sort function behaving incorrectly.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 15 17:45:07 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52192
Bug ID: 52192
Summary: Sort function behaving incorrectly.
Product: libc++
Version: 11.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: edward.vogel at hpe.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Created attachment 25368
--> https://bugs.llvm.org/attachment.cgi?id=25368&action=edit
This is the test program.
There seems to be an issue with the libc++ sort function. The attached program
runs correctly with the default library, but fails with libc++. The expected
output is 0.
Here is a cut/paste from a cygwin session:
$ clang++ -std=c++11 -o a.out -w t.cpp
VogelEd at XLB3502Q4E ~
$ ./a.out
got back 0
VogelEd at XLB3502Q4E ~
$ clang++ -std=c++11 -o a.out -stdlib=libc++ -w t.cpp
VogelEd at XLB3502Q4E ~
$ ./a.out
got back 260
Other environments (such as Visual Studio 2019) also emit 0.
--
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/20211016/d855e81d/attachment-0001.html>
More information about the llvm-bugs
mailing list