[llvm-bugs] [Bug 31166] New: std::inplace_merge seems to be unstable.

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 26 08:13:29 PST 2016


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

            Bug ID: 31166
           Summary: std::inplace_merge seems to be unstable.
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: denis.yaroshevskij at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    Classification: Unclassified

Created attachment 17649
  --> https://llvm.org/bugs/attachment.cgi?id=17649&action=edit
Code that reproduces the bug.

The standard requires std::inplace_merge to be stable. If I am correct, it's
not in the version of the library that I'm using. In the attached example:
Expected output:
[{1,0}, {2,0}, {2,1}, {3,0}, {4,0}, ]
Real output:
[{1,0}, {2,1}, {2,0}, {3,0}, {4,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/20161126/b1d223c5/attachment.html>


More information about the llvm-bugs mailing list