-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
action::stable_sort of vector broken on Clang 3.8.1 since ~last Xmas #632
Comments
Sorry: I forgot to say that this works without problem under GCC. |
Workaround: -indices |= ranges::action::stable_sort(
+ranges::action::stable_sort(indices, ...which should suggest where the problem lies. |
sort-of minimized repro: #include <range/v3/action/stable_sort.hpp>
int main() {
int ints[1] = {};
#ifndef WORKAROUND
ints |= ranges::action::stable_sort(ranges::less{});
#else
ranges::action::stable_sort(ints, ranges::less{});
#endif
} |
Thanks so much for this quick response and pointer on how I can work around the issue. Apologies for not having minimised further myself. |
ericniebler
added a commit
that referenced
this issue
Apr 7, 2017
ericniebler
added a commit
that referenced
this issue
Apr 7, 2017
PR #634 should fix this. |
ericniebler
added a commit
that referenced
this issue
Apr 12, 2017
This works for me. Thanks so much for all your work on this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code used to compile and run under Clang 3.8.1:
...but since 6191722, it gives errors:
From what I can see on Wandbox, the problem disappears for Clang ≥ 4.0.
The text was updated successfully, but these errors were encountered: