This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]