[Bug c++/106361] [11/12/13 Regression] Internal compiler error when creating an out-of-line operator==() = default

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 22 05:40:59 GMT 2022


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

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

https://gcc.gnu.org/g:1503d946c06e2005c860f56231d2ea582a8a340f

commit r11-10160-g1503d946c06e2005c860f56231d2ea582a8a340f
Author: Jason Merrill <jason@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.c (move_fn_p): Remove assert.

    gcc/testsuite/ChangeLog:

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


More information about the Gcc-bugs mailing list