summaryrefslogtreecommitdiff
path: root/libstdc++-v3/ChangeLog
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-04-23 21:39:33 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-04-23 21:39:33 +0100
commit40541efe1c063e9ce894b5f11ff727e4aec56e8b (patch)
tree45f59965e31bcc915289cb97da5aed3abb4461ca /libstdc++-v3/ChangeLog
parenta2dcb56c9443d1211e14889bd0c2c21360d54cdb (diff)
libstdc++: Change __cpp_lib_array_constexpr for C++17 again
This partially reverts my previous change related to this macro. The C++20 constexpr iterator requirements are always met by array:iterator, because it's just a pointer. So the macro can be set to 201803 even in C++17 mode. * include/bits/stl_iterator.h (__cpp_lib_array_constexpr): Revert value for C++17 to 201803L because P0858R0 is supported for C++17. * include/std/version (__cpp_lib_array_constexpr): Likewise. * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check for value corresponding to P0031R0 features being tested. * testsuite/23_containers/array/requirements/constexpr_iter.cc: Check for value corresponding to P0858R0 features being tested.
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r--libstdc++-v3/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 52535464984..7ce32b9348b 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,13 @@
2020-04-23 Jonathan Wakely <jwakely@redhat.com>
+ * include/bits/stl_iterator.h (__cpp_lib_array_constexpr): Revert
+ value for C++17 to 201803L because P0858R0 is supported for C++17.
+ * include/std/version (__cpp_lib_array_constexpr): Likewise.
+ * testsuite/23_containers/array/element_access/constexpr_c++17.cc:
+ Check for value corresponding to P0031R0 features being tested.
+ * testsuite/23_containers/array/requirements/constexpr_iter.cc:
+ Check for value corresponding to P0858R0 features being tested.
+
* include/std/version (__cpp_lib_three_way_comparison): Define for
freestanding builds.