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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Patrick Palka
<ppa...@gcc.gnu.org>:

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

commit r15-10062-g5a29c9147404c0473e009df879e7467ff4948820
Author: Patrick Palka <ppa...@redhat.com>
Date:   Tue Jul 15 15:17:23 2025 -0400

    libstdc++: Add missing initializers for __maybe_present_t members
[PR119962]

    Data members of type __maybe_present_t where the conditionally present
    type might be an aggregate or fundamental type need to be explicitly
    value-initialized (rather than implicitly default-initialized), so that
    default-initialization of the containing class always results in an
    completely initialized object.

            PR libstdc++/119962

    libstdc++-v3/ChangeLog:

            * include/std/ranges (join_view::_Iterator::_M_outer): Initialize.
            (lazy_split_view::_OuterIter::_M_current): Initialize.
            (join_with_view::_Iterator::_M_outer_it): Initialize.
            * testsuite/std/ranges/adaptors/join.cc (test15): New test.
            * testsuite/std/ranges/adaptors/join_with/1.cc (test05): New test.
            * testsuite/std/ranges/adaptors/lazy_split.cc (test13): New test.

    Reviewed-by: Tomasz KamiÅski <tkami...@redhat.com>
    Reviewed-by: Jonathan Wakely <jwak...@redhat.com>
    (cherry picked from commit 0828600f586e75a2056a4fc7eb0a340c363d6c66)

Reply via email to