https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117094
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:03623fa91ff36ecb9faa3b55f7842a39b759594e commit r15-4322-g03623fa91ff36ecb9faa3b55f7842a39b759594e Author: Jonathan Wakely <jwak...@redhat.com> Date: Sun Oct 13 22:48:43 2024 +0100 libstdc++: Use std::move for iterator in ranges::fill [PR117094] Input iterators aren't required to be copyable. libstdc++-v3/ChangeLog: PR libstdc++/117094 * include/bits/ranges_algobase.h (__fill_fn): Use std::move for iterator that might not be copyable. * testsuite/25_algorithms/fill/constrained.cc: Check non-copyable iterator with sized sentinel.