re PR c++/92966 (Segfault on defaulted operator== with wrong return type)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 23:19:23 +0000 (00:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 23:19:23 +0000 (00:19 +0100)
commitb804bd89d3a8ff3ab6b916d2982b83f805cc6256
tree8a1097c4821acbaa53300ecce02b6a2f911f4b32
parent8aca5ebe07efd6d710c76eff2d3524f6c5c4ff2b
re PR c++/92966 (Segfault on defaulted operator== with wrong return type)

PR c++/92966
* method.c (early_check_defaulted_comparison): Don't set
DECL_MAYBE_DELETED when returning false.

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

From-SVN: r279683
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/spaceship-eq8.C [new file with mode: 0644]