https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106361
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:28be481cf47d52af8b11972d2394226bbaf87867 commit r13-1784-g28be481cf47d52af8b11972d2394226bbaf87867 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.