c++: explicit object cleanups
commit5a6d3b1737843aa64d83ffc5d639fa0afa5d8318
authorJason Merrill <jason@redhat.com>
Tue, 9 Jan 2024 21:00:52 +0000 (9 16:00 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 9 Jan 2024 21:04:09 +0000 (9 16:04 -0500)
treeae79a46ef382579cbb5ca1cde6406d9ce2c5d269
parentbfad006b88ec26e91b7edf9cf9ad4aaf9b8a9727
c++: explicit object cleanups

The FIXME in xobj_iobj_parameters_correspond was due to expecting
TYPE_MAIN_VARIANT to be the same for all equivalent types, which is not the
case.  And I adjusted some comments that I disagree with; the iobj parameter
adjustment only applies to overload resolution, we can handle that in
cand_parms_match (and I have WIP for that).

gcc/cp/ChangeLog:

* call.cc (build_over_call): Refactor handle_arg lambda.
* class.cc (xobj_iobj_parameters_correspond): Fix FIXME.
* method.cc (defaulted_late_check): Adjust comments.
gcc/cp/call.cc
gcc/cp/class.cc
gcc/cp/method.cc