[Bug libstdc++/94971] [10/11 Regression] Parallel Mode cannot be used in C++20
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 7 20:44:00 GMT 2020
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 <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:9c24e97a97aaad4ad0500170cbae4f387d82ddd6
commit r11-180-g9c24e97a97aaad4ad0500170cbae4f387d82ddd6
Author: Jonathan Wakely <jwakely@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.
More information about the Gcc-bugs
mailing list