aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-06-15 17:11:38 -0400
committerJason Merrill <jason@redhat.com>2020-06-17 15:08:42 -0400
commit44492e248cbff60b12f5cbdaa32b265c5e8c9aff (patch)
tree4be0a18736a2e007ab79abef27ef49154840f581 /gcc/gimplify.c
parent68df8e8c3438dda209c3ad9843933da640c9a71c (diff)
downloadgcc-44492e248cbff60b12f5cbdaa32b265c5e8c9aff.zip
gcc-44492e248cbff60b12f5cbdaa32b265c5e8c9aff.tar.gz
gcc-44492e248cbff60b12f5cbdaa32b265c5e8c9aff.tar.bz2
c++: implicit operator== adjustments from P2002.
P2002R1, adopted at the February C++ meeting, made several refinements to the wording for operator<=>. This implements clarifications in how the implicit operator== is declared: as a duplicate of the operator<=>, with only the return type and name changed. To that end I factored out the declaration copying from build_clone. gcc/cp/ChangeLog: * cp-tree.h (copy_fndecl_with_name): Declare. * class.c (copy_fndecl_with_name): Split out from... (build_clone): ...here. (add_implicitly_declared_members): Add op== to TYPE_FIELDS. * method.c (implicitly_declare_fn): Use copy_fndecl_with_name. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-synth9.C: New test.
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions