https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94702
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:9d13ebadf78821fe5a239600460a81c10def10cc commit r9-8536-g9d13ebadf78821fe5a239600460a81c10def10cc Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu Apr 23 18:48:50 2020 +0100 libstdc++: Define __cpp_lib_execution feature test This macro has never been defined by libstdc++, despite supporting the parallel algorithms. It should have a different value for C++17 and C++20, because P1001R2 should not be supported in C++17, but unsequenced_policy is defined for C++17 (see PR 94702). Backport from mainline 2020-04-22 Jonathan Wakely <jwak...@redhat.com> * include/std/execution (__cpp_lib_execution): Define to indicate support for P0024R2 and P1001R2. * include/std/version (__cpp_lib_execution): Define. * testsuite/25_algorithms/pstl/feature_test.cc: Only test macro defined by <algorithm>, move other tests to new tests ... * testsuite/25_algorithms/pstl/feature_test-2.cc: New test. * testsuite/25_algorithms/pstl/feature_test-3.cc: New test. * testsuite/25_algorithms/pstl/feature_test-4.cc: New test. * testsuite/25_algorithms/pstl/feature_test-5.cc: New test.