https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94971
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:9c24e97a97aaad4ad0500170cbae4f387d82ddd6 commit r11-180-g9c24e97a97aaad4ad0500170cbae4f387d82ddd6 Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu May 7 21:43:49 2020 +0100 libstdc++: Fix some C++20 algorithms to work in parallel mode Some new algorithms need to use _GLIBCXX_STD_A to refer to the "normal" version of the algorithm, to workaround the namespace dance done for parallel mode. PR libstdc++/94971 (partial) * include/bits/ranges_algo.h (ranges::__sample_fn): Qualify std::sample using macro to work in parallel mode. (__sort_fn): Likewise for std::sort. (ranges::__nth_element_fn): Likewise for std::nth_element. * include/bits/stl_algobase.h (lexicographical_compare_three_way): Likewise for std::__min_cmp. * include/parallel/algobase.h (lexicographical_compare_three_way): Add to namespace std::__parallel.