[Bug c++/92973] [10 Regression] Silently accepting defaulted comparison operators in C++11 .. 17
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 20 23:18:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92973
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 20 23:18:09 2019
New Revision: 279682
URL: https://gcc.gnu.org/viewcvs?rev=279682&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/spaceship-eq1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/method.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list