https://gcc.gnu.org/g:3c8142bd8677ac2fc4355a3e94ec7f2c421be13a
commit r13-9122-g3c8142bd8677ac2fc4355a3e94ec7f2c421be13a Author: Jonathan Wakely <[email protected]> Date: Wed Sep 18 17:47:49 2024 +0100 libstdc++: Fix condition for ranges::copy to use memmove [PR116754] libstdc++-v3/ChangeLog: PR libstdc++/116754 * include/bits/ranges_algobase.h (__copy_or_move): Fix order of arguments to __memcpyable. (cherry picked from commit 83c6fe130a00c6c28cfffcc787a0a719966adfaf) Diff: --- libstdc++-v3/include/bits/ranges_algobase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/ranges_algobase.h b/libstdc++-v3/include/bits/ranges_algobase.h index f25147f12584..5b90f437530b 100644 --- a/libstdc++-v3/include/bits/ranges_algobase.h +++ b/libstdc++-v3/include/bits/ranges_algobase.h @@ -252,7 +252,7 @@ namespace ranges { if (!std::__is_constant_evaluated()) { - if constexpr (__memcpyable<_Iter, _Out>::__value) + if constexpr (__memcpyable<_Out, _Iter>::__value) { using _ValueTypeI = iter_value_t<_Iter>; static_assert(_IsMove
