https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121913

--- Comment #7 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:412a1f78b53709ee60d7b17393cc3a9c9e0b973c

commit r16-3912-g412a1f78b53709ee60d7b17393cc3a9c9e0b973c
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Sep 11 17:39:43 2025 +0100

    libstdc++: ranges::rotate should not use 'auto' with ranges::iter_move
[PR121913]

    The r16-3835-g7801236069a95c change to use ranges::iter_move should also
    have used iter_value_t<_Iter> to ensure we get an object of the value
    type, not a proxy reference.

    libstdc++-v3/ChangeLog:

            PR libstdc++/121913
            * include/bits/ranges_algo.h (__rotate_fn::operator()): Use
            auto_value_t<_Iter> instead of deduced type.

    Reviewed-by: Patrick Palka <ppa...@redhat.com>

Reply via email to