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

--- Comment #11 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:c2c7d71eeeab7c6e2a8124b53d6eae6c59781e79

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

    libstdc++: Fix constraints on std::optional converting assignments
[PR117858]

    It looks like I copied these constraints from operator=(U&&) and didn't
    correct them to account for the parameter being optional<U> not U.

    libstdc++-v3/ChangeLog:

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

Reply via email to