aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/ChangeLog
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-05-03 12:46:15 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-05-03 13:33:15 +0100
commit22b6b5d6cfb76deb68ca5bc0bcae8b4245df946d (patch)
tree57cdb833b8970bc3301816c9862d9b748b0e5c21 /libstdc++-v3/ChangeLog
parent18a6e4130fb3c63a974295a18ed6e4bef070df03 (diff)
downloadgcc-22b6b5d6cfb76deb68ca5bc0bcae8b4245df946d.zip
gcc-22b6b5d6cfb76deb68ca5bc0bcae8b4245df946d.tar.gz
gcc-22b6b5d6cfb76deb68ca5bc0bcae8b4245df946d.tar.bz2
libstdc++: Make byte-sized std::fill_n a constant expression (PR 94933)
The overload for byte types uses memset and isn't constexpr. This adds the specifier and uses std::is_constant_evaluated() to provide a compile-time alternative. PR libstdc++/94933 * include/bits/stl_algobase.h (__fill_a1): Make overload for byte types usable in constant expressions. * testsuite/25_algorithms/fill_n/constexpr.cc: Test with bytes and non-scalars.
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 1bf1081..7f11117 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,11 @@
+2020-05-03 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/94933
+ * include/bits/stl_algobase.h (__fill_a1): Make overload for byte types
+ usable in constant expressions.
+ * testsuite/25_algorithms/fill_n/constexpr.cc: Test with bytes and
+ non-scalars.
+
2020-05-01 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/94901