diff options
author | Patrick Palka <ppalka@redhat.com> | 2025-07-25 10:55:35 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2025-07-25 10:55:35 -0400 |
commit | ba5a6787374dea3e90f09771134d16b9f6d2714e (patch) | |
tree | c137f3970aa7b8ae019137c681bf48bbe6732984 /gcc/testsuite/rust/compile/macros/builtin/include_rs | |
parent | cebf2a85d2de9aea3fa8ba0d8dc45945e56f0eb9 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
As a follow-up to r16-2448-g7590c14b53a762, this patch attempts to teach
build_min_non_dep_op_overload how to rebuild all rewritten comparison
operators, not just != -> == ones, so that we don't incorrectly repeat
the unqualified name lookup at instantiation time.
Note that changes how we mangle such comparison ops, in a way that is
overall more consistent with how we've been mangling non-rewritten
operators, see PR c++/121239.
gcc/cp/ChangeLog:
* call.cc (build_new_op): If the selected candidate is
rewritten, communicate the LOOKUP_REWRITTEN/REVERSED flags to
the caller via the 'overload' out-parameter, and stop clearing
'*overload' in that case.
* tree.cc (build_min_non_dep_op_overload): Handle rebuilding all
C++20 rewritten comparison operator expressions.
gcc/testsuite/ChangeLog:
* g++.dg/lookup/operator-8.C: Remove XFAILs and properly
suppress all -Wunused-result warnings.
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/testsuite/rust/compile/macros/builtin/include_rs')
0 files changed, 0 insertions, 0 deletions