From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DB9C385B516; Thu, 23 Mar 2023 09:41:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DB9C385B516 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679564494; bh=5IVLVq4EjrNWHYn2y1sY5tJE01VjDFQ6Rk7EpLHDWy0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Wsn8QyFLxM9L0ep0tg8ICS765e04T66tjtxGbzNpPoaP/ooJ5L5e3hgHfFtbR1Q2a 4qh9XpVd+H9WlutmEEC0oIpmGIPytudaPZ5npJ8oFSE+NEGK5isaD837aU4bayOtr+ ATgqs01BF9yHQV3EJfxaOq2PAjNDy7LsFvPWIHmE= From: "jakub 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 09:41:31 +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: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- Slightly more reduced: template struct optional { template explicit optional (U); template void operator=3D (U); }; struct T { int a; }; struct S { void foo (int y) { x =3D { y }; } optional x; };=