aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-06-18 17:41:43 -0400
committerJason Merrill <jason@redhat.com>2020-06-19 12:25:37 -0400
commit4058454c9e0ee141d049cefa8db315a345a4b30a (patch)
treea12833a627dc92f855820c1d6d391e72e15cc19b /gcc/fortran
parent4cea81adabd7660838ebb3e59e8d28f820a3b789 (diff)
downloadgcc-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')
0 files changed, 0 insertions, 0 deletions