diff options
author | Jason Merrill <jason@redhat.com> | 2025-04-01 13:04:05 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-04-03 11:19:30 -0400 |
commit | bd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5 (patch) | |
tree | a2dff69fe1420d8f748f70722b6b6c0f5d33b665 /libjava/classpath | |
parent | 26e9139691ac73f53fad64960a0ea48830adfa52 (diff) | |
download | gcc-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')
0 files changed, 0 insertions, 0 deletions