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

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

https://gcc.gnu.org/g:29bea6921d0e2e3dd20bc78926ef0e98b1b1e4ad

commit r15-5889-g29bea6921d0e2e3dd20bc78926ef0e98b1b1e4ad
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Sat Nov 30 21:37:02 2024 +0000

    libstdc++: Fix constraints on std::optional converting constructors
[PR117889]

    The converting constructors had the same bug as the converting
    assignments, so need the same fix as r15-5833-gc2c7d71eeeab7c.

    libstdc++-v3/ChangeLog:

            PR libstdc++/117889
            PR libstdc++/117858
            * include/std/optional (optional(const optional<U>&)): Fix copy
            and paste error in constraints.
            (optional(optional<U>&&)): Likewise.
            * testsuite/20_util/optional/assignment/117858.cc: Move to ...
            * testsuite/20_util/optional/cons/117858.cc: New test.

Reply via email to