re PR c++/92973 (Silently accepting defaulted comparison operators in C++11 .. 17)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 23:18:09 +0000 (00:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 23:18:09 +0000 (00:18 +0100)
commit8aca5ebe07efd6d710c76eff2d3524f6c5c4ff2b
tree5533bc6d04286960b1ff1db034ed9fd86491b024
parent0bd002bf2e9f0224905ad19f036dde27b63c26c5
re PR c++/92973 (Silently accepting defaulted comparison operators in C++11 .. 17)

PR c++/92973
* method.c (early_check_defaulted_comparison): For C++17 and earlier
diagnose defaulted comparison operators.

* g++.dg/cpp0x/spaceship-eq1.C: New test.

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