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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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@XLB3502Q4E ~
$ ./a.out
got back 0
VogelEd@XLB3502Q4E ~
$ clang++ -std=c++11 -o a.out -stdlib=libc++ -w t.cpp
VogelEd@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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs