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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <[email protected]>:

https://gcc.gnu.org/g:b3a3ecc460237948d924bca6cb8fe15622e5025b

commit r17-5268-gb3a3ecc460237948d924bca6cb8fe15622e5025b
Author: Jesse Connell <[email protected]>
Date:   Fri Oct 16 13:17:19 2026 +0100

    libstdc++: Use borrowed_iterator_t in ranges::mismatch [PR127918]

    We did not match the return type specified in the standard. I did not
    find any other cases where we failed to use borrowed_iterator_t.

    libstdc++-v3/ChangeLog:

            PR libstdc++/127918
            * include/bits/ranges_util.h (__mismatch_fn::operator()): Use
            borrowed_iterator_t in return type.
            * testsuite/25_algorithms/mismatch/constrained.cc: Check that
            dangling results are correctly avoided.

    Co-authored-by: Jonathan Wakely <[email protected]>

Reply via email to