From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BA9C43858D33; Mon, 12 Feb 2024 07:58:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA9C43858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707724723; bh=2R+v4YOnUQLeBZcHA0vtjsBYwsGHOXg18n2iVIPkrD4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=va1ZWH4dvrqynqsyCW6iu0iT5HVHVRlh9+4/R9KcRAH/9enyFuKETTjh4YH+OVOp2 p15zmEkP9wSKs9ZJZHlacQx4ymyrNtrTqqW1jQvOFKoQEUIVCLAGg/l+albOjATsBL 3VED5G0rV18c0amZF3xhX/FmwKj8igyWXo1pa2Uc= From: "jlame646 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113884] GCC rejects valid program saying ambiguous call when using std::vector Date: Mon, 12 Feb 2024 07:58:43 +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: jlame646 at gmail 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=3D113884 --- Comment #9 from Jason Liam --- (In reply to Andrew Pinski from comment #8) Does that imply that following program is also invalid? GCC rejects the bel= ow program but msvc accepts. ``` struct A { explicit A(int =3D 10); A()=3D default; }; A a =3D {}; //gcc rejects this but msvc accepts ```=