aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
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 /gcc/tree-ssa-loop-im.c
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 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions