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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:399ca300412970bcc11104d431d32770d0fc6c65

commit r14-11626-g399ca300412970bcc11104d431d32770d0fc6c65
Author: Michael Levine <mlevin...@bloomberg.net>
Date:   Fri Jun 7 09:54:38 2024 +0100

    libstdc++: Fix std::ranges::iota is not included in numeric [PR108760]

    Before this patch, using std::ranges::iota required including
    <algorithm> when it should have been sufficient to only include
    <numeric>.

    For the backport to the release branch ranges::iota is defined in
    <bits/ranges_algobase.h> so that it's available in both <numeric> and
    <algorithm>. This avoids breaking code that compiles successfully using
    existing releases where <algorithm> defines ranges::iota.

    libstdc++-v3/ChangeLog:

            PR libstdc++/108760
            * include/bits/ranges_algo.h (ranges::out_value_result)
            (ranges::iota_result, ranges::__iota_fn, ranges::iota): Move to
            <bits/ranges_algobase.h>.
            * include/bits/ranges_algobase.h (ranges::out_value_result):
            (ranges::iota_result, ranges::__iota_fn, ranges::iota): Move to
            here.
            * include/std/numeric: Include <bits/ranges_algobase.h>.
            * testsuite/25_algorithms/iota/1.cc: Renamed to ...
            * testsuite/26_numerics/iota/2.cc: ... here.

    Signed-off-by: Michael Levine <mlevin...@bloomberg.net>
    (cherry picked from commit 0bb1db32ccf54a9de59bea718f7575f7ef22abf5)

Reply via email to