diff options
author | Jason Merrill <jason@redhat.com> | 2023-10-05 10:45:00 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-10-20 16:27:10 -0400 |
commit | ff04531b66102110e1c7fbd3a34d8e42ba7152a8 (patch) | |
tree | 92a1a7c836375df6572f5f377a5e2dca733529c3 /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | 084addf8a700fab9222d4127ab8524920d0ca481 (diff) | |
download | gcc-ff04531b66102110e1c7fbd3a34d8e42ba7152a8.zip gcc-ff04531b66102110e1c7fbd3a34d8e42ba7152a8.tar.gz gcc-ff04531b66102110e1c7fbd3a34d8e42ba7152a8.tar.bz2 |
c++: fix tourney logic
In r13-3766 I changed the logic at the end of tourney to avoid redundant
comparisons, but the change also meant skipping any less-good matches
between the champ_compared_to_predecessor candidate and champ itself.
This should not be a correctness issue, since we believe that joust is a
partial order. But it can lead to missed warnings, as in this testcase.
gcc/cp/ChangeLog:
* call.cc (tourney): Only skip champ_compared_to_predecessor.
gcc/testsuite/ChangeLog:
* g++.dg/warn/Wsign-promo1.C: New test.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions