diff options
author | Jason Merrill <jason@redhat.com> | 2020-06-17 16:22:33 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:14:03 -0300 |
commit | db8a93d61142936da8126078bc3e95fb221e002c (patch) | |
tree | 513277f6baf900831580a841ca3524042e5dc68b /gcc/fortran/interface.c | |
parent | 3a7eb528563647cde968ee310eee8fe08cb7ae0b (diff) | |
download | gcc-db8a93d61142936da8126078bc3e95fb221e002c.zip gcc-db8a93d61142936da8126078bc3e95fb221e002c.tar.gz gcc-db8a93d61142936da8126078bc3e95fb221e002c.tar.bz2 |
c++: More P2002 operator<=> refinements.
* Disallow && references.
* Allow empty unions.
* Improve diagnostics for a subobject comparison with
non-comparison-category type.
gcc/cp/ChangeLog:
* method.c (early_check_defaulted_comparison): Check for &&.
(build_comparison_op): Allow empty union. Diagnose non-category
type.
(common_comparison_type): Remove handling for non-category type.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/spaceship-ref1.C: New test.
* g++.dg/cpp2a/spaceship-synth-neg4.C: New test.
* g++.dg/cpp2a/spaceship-union1.C: New test.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions