From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB5333858C50; Thu, 23 Mar 2023 20:03:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB5333858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679601792; bh=sxSKABmkBwfeDKer1tAEfLfGFM2n9xhl47FD+UxCIeY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Bp1V2ZiLd+titY8+qd8G53bor9fTw42cXdm2oAV+lIjwxEcu0ZZvvo0JQJO8HoJAN tPDliumJ8eDYO/Ha4+2PghY04JXlYQBg41SWWILhp2bxVO1rvptJPO56gcT5I0b01M kvfAQNmY/40/UU9wVYANLg2eaZ7Lyi4oO8uvcqwA= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109247] [13 Regression] optional o; o = {x}; wants to use explicit optional(U) constructor since r13-6765-ga226590fefb35ed6 Date: Thu, 23 Mar 2023 20:03:12 +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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: SUSPENDED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D109247 --- Comment #7 from Jason Merrill --- Created attachment 54739 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54739&action=3Dedit possible patch An implementation of my guess at the clang rule, if we end up wanting to go that way.=