diff options
author | Jason Merrill <jason@redhat.com> | 2020-06-18 17:41:43 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:14:15 -0300 |
commit | 382b55e58514e39ca06f37b20a02bfd0f752de20 (patch) | |
tree | 83ffda61739732a3a420def1159f80a8b31a54f3 /gcc/fortran/interface.c | |
parent | 89e3dc4dbca501d7990a8de8b862699c1b7a76b1 (diff) | |
download | gcc-382b55e58514e39ca06f37b20a02bfd0f752de20.zip gcc-382b55e58514e39ca06f37b20a02bfd0f752de20.tar.gz gcc-382b55e58514e39ca06f37b20a02bfd0f752de20.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/interface.c')
0 files changed, 0 insertions, 0 deletions