P2562R1 ("constexpr Stable Sorting") adds constexpr to stable_sort,
stable_partition and inplace_merge. However only the first is already
implemented in libstdc++, so we shouldn't bump the feature-testing
macro to the bumped C++26 value. This commit sets it to one less
than the final value.
Amends
r15-7708-gff43f9853d3b10.
libstdc++-v3/ChangeLog:
* include/bits/version.def (constexpr_algorithms): Change
the value of the feature-testing macro.
* include/bits/version.h: Regenerate.
* testsuite/25_algorithms/cpp_lib_constexpr.cc: Amend the
check of the feature-testing macro.
ftms = {
name = constexpr_algorithms;
values = {
- v = 202306;
+ v = 202305;
cxxmin = 26;
};
values = {
#if !defined(__cpp_lib_constexpr_algorithms)
# if (__cplusplus > 202302L)
-# define __glibcxx_constexpr_algorithms 202306L
+# define __glibcxx_constexpr_algorithms 202305L
# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_algorithms)
-# define __cpp_lib_constexpr_algorithms 202306L
+# define __cpp_lib_constexpr_algorithms 202305L
# endif
# elif (__cplusplus >= 202002L)
# define __glibcxx_constexpr_algorithms 201806L
#ifndef __cpp_lib_constexpr_algorithms
# error "Feature-test macro for constexpr algorithms missing"
#elif __cplusplus > 202302L
-# if __cpp_lib_constexpr_algorithms < 202306L
+# if __cpp_lib_constexpr_algorithms < 202305L
# error "Feature-test macro for constexpr algorithms has wrong value"
# endif
#elif __cpp_lib_constexpr_algorithms < 201806L