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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:707bc64fbeecf8a10f7aad103534b6999e9d190c

commit r12-8607-g707bc64fbeecf8a10f7aad103534b6999e9d190c
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Jul 20 20:00:58 2022 -0400

    c++: defaulted friend op== [PR106361]

    Now non-member functions can be defaulted, so this assert is wrong.
    move_signature_fn_p already checks for ctor or op=.

            PR c++/106361

    gcc/cp/ChangeLog:

            * decl.cc (move_fn_p): Remove assert.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/spaceship-eq14.C: New test.

Reply via email to