aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-06-17 16:22:33 -0400
committerJason Merrill <jason@redhat.com>2020-06-18 16:00:30 -0400
commitb56dc0fc6cc39fba9ed974c58a21cf5f7a264be1 (patch)
tree4c1ae7089617958e3bb3754a8babd5cb10af711b /gcc/recog.c
parente54353a72a0fd780a2f233a057f3f8121b476192 (diff)
downloadgcc-b56dc0fc6cc39fba9ed974c58a21cf5f7a264be1.zip
gcc-b56dc0fc6cc39fba9ed974c58a21cf5f7a264be1.tar.gz
gcc-b56dc0fc6cc39fba9ed974c58a21cf5f7a264be1.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/recog.c')
0 files changed, 0 insertions, 0 deletions