Issue 89591
Summary libstdc++ sort does not work... well
Labels new issue
Assignees
Reporter kelbon
    Recently I wanted to sort 2 separate arrays, one with the keys, the other with their corresponding values. A year ago this worked (iota } transform (tie(key, value)) + sort), but now, after improvements and corrections to the standard, this is no longer possible.
But during the implementation process I discovered bugs/oddities in the libstd++ standard library:

1. even if range is std::sortable, stable_sort may be throw compilation error:

https://godbolt.org/z/M8hWz1G7W

This error may be even worse if you use 'size_t' indexes:

https://godbolt.org/z/nzqqPWhd3

2. std::make_unsignedhas no specialization for __int128_t, but it is used:

https://godbolt.org/z/GPa9E4h5a


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to