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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Arsen Arsenovic <ar...@gcc.gnu.org>:

https://gcc.gnu.org/g:5a41ab8da087617d785f563b76f5c2fd6600b4c0

commit r15-6446-g5a41ab8da087617d785f563b76f5c2fd6600b4c0
Author: Arsen ArsenoviÄ <ar...@aarsen.me>
Date:   Tue Dec 24 12:29:02 2024 +0100

    libstdc++: don't implicit-construct _Yielded_decvref [PR118022]

    This overload requires

      constructible_from<remove_cvref_t<yielded>,
                         const remove_reference_t<yielded>&>

    ... but then tries to construct remove_cvref_t<yielded> implicitly,
    which means it imposes an additional constraint not in the standard.

    libstdc++-v3/ChangeLog:

            PR libstdc++/118022
            * include/std/generator
            (_Promise_erased::yield_value(const _Yielded_deref&)): Don't
            implicit-constuct _Yielded_decvref.
            * testsuite/24_iterators/range_generators/pr118022.cc: New test.

Reply via email to