https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86521
--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:4ec6b627cb008e31ea3d1ee93a209297f56c6a3e commit r14-1810-g4ec6b627cb008e31ea3d1ee93a209297f56c6a3e Author: Jason Merrill <ja...@redhat.com> Date: Fri Mar 3 15:04:25 2023 -0500 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.