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

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

https://gcc.gnu.org/g:3d16f8f2aec9583422d00c531732ca9d33e6ef26

commit r13-8674-g3d16f8f2aec9583422d00c531732ca9d33e6ef26
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Mar 27 21:51:13 2024 +0000

    libstdc++: Reverse arguments in constraint for std::optional's <=>
[PR104606]

    This is a workaround for a possible compiler bug that causes constraint
    recursion in the operator<=>(const optional<T>&, const U&) overload.

    libstdc++-v3/ChangeLog:

            PR libstdc++/104606
            * include/std/optional (operator<=>(const optional<T>&, const U&)):
            Reverse order of three_way_comparable_with template arguments.
            * testsuite/20_util/optional/relops/104606.cc: New test.

    (cherry picked from commit 7f65d8267fbfd19cf21a3dc71d27e989e75044a3)

Reply via email to