From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C51538582AC; Wed, 10 Jan 2024 03:03:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C51538582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704855808; bh=DIQWMcf6qwtvYDxV9bZtK1W+jV65bCrUjwu8r+XgnUU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cr4QEed5EjbYXhCaqaJRrHVh0tq38xTnWjT8G3jpFmpwZ/ik3tZ2O2Wwh0J2nZIFe KofYBZfmkCgcOaJ4fbhSrjZWH4QU+q2LncNHRuxizjS4zymq+ilNRSzQ/342HGXbxz wYjlKpBIZkdJKC8QQ1ab7mQCOimEH6KgCMHhsyjg= From: "jlame646 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113300] GCC rejects valid program involving copy list initialization A a = {} of a class with explicit and non explicit default constructors Date: Wed, 10 Jan 2024 03:03:24 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jlame646 at gmail dot com 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=3D113300 --- Comment #4 from Jason Liam --- (In reply to Andrew Pinski from comment #1) > There is a C++ defect report in this area even ... Looks like that gcc and clang are non-compliant here as per this discussion= in CWG issue list: https://github.com/cplusplus/CWG/issues/486=20 Also, the cwg 1228 is categorised as NAD. https://wg21.link/cwg1228 so this(that the program should compile) looks intentional.=