]> gcc.gnu.org Git - gcc.git/commit
c++: defaulted friend op== [PR106361]
authorJason Merrill <jason@redhat.com>
Thu, 21 Jul 2022 00:00:58 +0000 (20:00 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 21 Jul 2022 21:21:22 +0000 (17:21 -0400)
commit28be481cf47d52af8b11972d2394226bbaf87867
tree9c1d440573ca8d47a9b9ae23af822b3ebbf49872
parentdf118d7ba138cacb17203d4a1b5f27730347cc77
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.
gcc/cp/decl.cc
gcc/testsuite/g++.dg/cpp2a/spaceship-eq14.C [new file with mode: 0644]
This page took 0.058605 seconds and 5 git commands to generate.