aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2025-04-01 13:04:05 -0400
committerJason Merrill <jason@redhat.com>2025-04-03 11:19:30 -0400
commitbd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5 (patch)
treea2dff69fe1420d8f748f70722b6b6c0f5d33b665 /libjava/classpath/lib/java
parent26e9139691ac73f53fad64960a0ea48830adfa52 (diff)
downloadgcc-bd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5.zip
gcc-bd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5.tar.gz
gcc-bd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5.tar.bz2
c++: operator!= rewriting and arg-dep lookup
When considering an op== as a rewrite target, we need to disqualify it if there is a matching op!= in the same scope. But add_candidates was assuming that we could use the same set of op!= for all op==, which is wrong if arg-dep lookup finds op== in multiple namespaces. This broke 20_util/optional/relops/constrained.cc if the order of the ADL set changed. gcc/cp/ChangeLog: * call.cc (add_candidates): Re-lookup ne_fns if we move into another namespace. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/spaceship-rewrite6.C: New test.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions