]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: re-bump the feature-test macro for P2562R1 [PR119488]
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Thu, 27 Mar 2025 11:48:26 +0000 (12:48 +0100)
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Thu, 27 Mar 2025 12:47:30 +0000 (13:47 +0100)
Now that the algorithms have been merged we can advertise full support
for P2562R1. This effectively reverts r15-8933-ga264c270fde292.

libstdc++-v3/ChangeLog:

PR libstdc++/119488
* include/bits/version.def (constexpr_algorithms): Bump
the feature-testing macro.
* include/bits/version.h: Regenerate.
* testsuite/25_algorithms/cpp_lib_constexpr.cc: Test the
bumped value for the feature-testing macro.

libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/testsuite/25_algorithms/cpp_lib_constexpr.cc

index 7ef60af39deb6712adc45b31a2ab5b0b30ad3706..1468c0491b71c4da5a4536324bd734256e817b65 100644 (file)
@@ -1117,7 +1117,7 @@ ftms = {
 ftms = {
   name = constexpr_algorithms;
   values = {
-    v = 202305;
+    v = 202306;
     cxxmin = 26;
   };
   values = {
index a96ff49efa41a35889a1d90ec9edbb966cdb8a3f..f7c9849893dacb199dd04a7efa43aba5c785c4f1 100644 (file)
 
 #if !defined(__cpp_lib_constexpr_algorithms)
 # if (__cplusplus >  202302L)
-#  define __glibcxx_constexpr_algorithms 202305L
+#  define __glibcxx_constexpr_algorithms 202306L
 #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_algorithms)
-#   define __cpp_lib_constexpr_algorithms 202305L
+#   define __cpp_lib_constexpr_algorithms 202306L
 #  endif
 # elif (__cplusplus >= 202002L)
 #  define __glibcxx_constexpr_algorithms 201806L
index 3e5e55252fcac9995599060dbff4a501a3b15abb..3f60e9961158be71b7b39c9482aea1acbfc9519b 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef __cpp_lib_constexpr_algorithms
 # error "Feature-test macro for constexpr algorithms missing"
 #elif __cplusplus > 202302L
-# if __cpp_lib_constexpr_algorithms < 202305L
+# if __cpp_lib_constexpr_algorithms < 202306L
 #  error "Feature-test macro for constexpr algorithms has wrong value"
 # endif
 #elif __cpp_lib_constexpr_algorithms < 201806L