From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C2033857C66; Wed, 14 Jun 2023 14:04:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C2033857C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686751453; bh=9J+igbxjFjpu3ZFi2QYxjHBKUJ+lhG5qQGEYOvKmZA4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j+6KeTTMOCVmNWTTyo7JDJF/QOruKPdk4fK5lJgFaSyUwktPptTMPerUtlpjvgpAn vjov415UcnApNlDcqHzv2kuQtx4DKtW/TS1RviT/xaUACkRdT/PX28QIL5/YWlqEUI vMOTcaRkYkWqHomGdUFspuLG8oCMMzcvPOUL6dDA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86521] [8 Regression] GCC 8 selects incorrect overload of ref-qualified conversion operator template Date: Wed, 14 Jun 2023 14:04:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86521 --- Comment #18 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:4ec6b627cb008e31ea3d1ee93a209297f56c6a3e commit r14-1810-g4ec6b627cb008e31ea3d1ee93a209297f56c6a3e Author: Jason Merrill 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 befor= e. 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.=