diff options
author | Jason Merrill <jason@redhat.com> | 2023-03-03 15:04:25 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-06-14 10:03:09 -0400 |
commit | 4ec6b627cb008e31ea3d1ee93a209297f56c6a3e (patch) | |
tree | 58b23f334e82e421105a21051d6253cfa3b15a0d /gcc/tree-vect-patterns.cc | |
parent | 29aef9ff236022ebf566738f9bd08bb5e28fe6ca (diff) | |
download | gcc-4ec6b627cb008e31ea3d1ee93a209297f56c6a3e.zip gcc-4ec6b627cb008e31ea3d1ee93a209297f56c6a3e.tar.gz gcc-4ec6b627cb008e31ea3d1ee93a209297f56c6a3e.tar.bz2 |
c++: tweak c++17 ctor/conversion tiebreaker [DR2327]
In discussion of this issue CWG decided that the change of behavior on
well-formed code like overload-conv-4.C is undesirable. In further
discussion of possible resolutions, we discovered that we can avoid that
change while still getting the desired behavior on overload-conv-3.C by
making this a tiebreaker after comparing conversions, rather than before.
This also simplifies the implementation.
The issue resolution has not yet been finalized, but this seems like a clear
improvement.
DR 2327
PR c++/86521
gcc/cp/ChangeLog:
* call.cc (joust_maybe_elide_copy): Don't change cand.
(joust): Move the elided tiebreaker later.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/overload-conv-4.C: Remove warnings.
* g++.dg/cpp1z/elide7.C: New test.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions