From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A182385457F; Sun, 4 Dec 2022 04:39:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A182385457F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670128769; bh=5JgiULMvFeHkY23KcGTzKdNk6s5msMNulgEPK6IyHiM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Lo75zlitkqkfPVNLRK2KHATBwEn8n5KnceULRsBABb+X7t2lwdmrdfUbkMBXMhRyF /6/AFo9gwLsyN21qBMf6baf2fww5reRJaYTKKGgU3G05VkKCWkujrP0HDBseOC4JsL fefn7/Hbm9+fbqG/phFZdFGSFTwSqx+WiGw4HFe0= From: "nruslan_devel at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107958] Ambiguity with uniform initialization in overloaded operator and explicit constructor Date: Sun, 04 Dec 2022 04:39:29 +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: nruslan_devel at yahoo dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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 #10 from Ruslan Nikolaev --- The latter example seems to work well for both gcc and clang. The behavior = is also consistent for both explicit and implicit constructors. Thank you for clarifying that it was not a bug!=