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

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

https://gcc.gnu.org/g:0828600f586e75a2056a4fc7eb0a340c363d6c66

commit r16-2271-g0828600f586e75a2056a4fc7eb0a340c363d6c66
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>

Reply via email to