diff options
author | Jason Merrill <jason@redhat.com> | 2020-06-18 17:41:43 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-06-19 12:25:37 -0400 |
commit | 4058454c9e0ee141d049cefa8db315a345a4b30a (patch) | |
tree | a12833a627dc92f855820c1d6d391e72e15cc19b /gcc/fortran/match.c | |
parent | 4cea81adabd7660838ebb3e59e8d28f820a3b789 (diff) | |
download | gcc-4058454c9e0ee141d049cefa8db315a345a4b30a.zip gcc-4058454c9e0ee141d049cefa8db315a345a4b30a.tar.gz gcc-4058454c9e0ee141d049cefa8db315a345a4b30a.tar.bz2 |
c++: Allow defaulted comparison outside class.
Implementing P2085, another refinement to the operator<=> specification from
the Prague meeting. It was deemed desirable to be able to have a non-inline
defaulted definition of a comparison operator just like you can with other
defaulted functions.
gcc/cp/ChangeLog:
* method.c (early_check_defaulted_comparison): Allow defaulting
comparison outside class. Complain if non-member operator isn't a
friend.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/spaceship-friend1.C: New test.
* g++.dg/cpp2a/spaceship-err4.C: Adjust diagnostic.
Diffstat (limited to 'gcc/fortran/match.c')
0 files changed, 0 insertions, 0 deletions