This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r278078 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 12 Nov 2019 04:57:30 -0000
- Subject: r278078 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
Author: jason
Date: Tue Nov 12 04:57:29 2019
New Revision: 278078
URL: https://gcc.gnu.org/viewcvs?rev=278078&root=gcc&view=rev
Log:
Implement P1946R0, Allow defaulting comparisons by value.
* method.c (early_check_defaulted_comparison): Accept by-value,
reject mixed by-value and by-reference parms.
* decl.c (grokdeclarator): Set funcdef_flag for defaulted friend.
* decl2.c (grokfield): Don't SET_DECL_FRIEND_CONTEXT.
Added:
trunk/gcc/testsuite/g++.dg/cpp2a/spaceship-synth-neg1.C
trunk/gcc/testsuite/g++.dg/cpp2a/spaceship-synth4.C
trunk/gcc/testsuite/g++.dg/cpp2a/spaceship-synth5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/method.c