From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0323F3858D20; Sat, 3 Dec 2022 17:01:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0323F3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670086895; bh=11HYSiq04ZeVn4+u6m+p71u/fvYy9npBX8C+7TGiHQM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZstF5jcr/XQrr13ndbdTxbI7a82IhCZGxA/V37ox30yTGoe1w+fJA/NA8TN+IpdD/ EO+aj5W4W3pt9fHiH/4AE2O+cuYAZrjo05pxYPalrPDOft4V1sX7QfSghaDQFVkJOR GK+/iurGaZWsWS92BxDnFdqOq2h3F6+PIVWsG0OM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107958] Ambiguity with uniform initialization in overloaded operator and explicit constructor Date: Sat, 03 Dec 2022 17:01:34 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D107958 --- Comment #1 from Andrew Pinski --- Note MSVC (with /std:c++latest) also rejects the source that is in comment = #0 for the same reason as GCC: (39): error C2593: 'operator =3D' is ambiguous (25): note: could be 'PairPtr &PairPtr::operator =3D(const std::pai= r &)' (19): note: or 'PairPtr &PairPtr::operator =3D(const PairPtr = &)' (39): note: while trying to match the argument list '(PairPtr, initializer list)'=