From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FC723858D32; Thu, 28 Dec 2023 12:32:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FC723858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703766778; bh=ELa2/ANjb5sfIRkDBd4BQK7EYw/p9wB1YFN8A+vijck=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pIAzDIrpLGtCWxFzAWJiWEI75NKFsDIgu+snd4+XE2RWmMSIlksvr4wNx7UU0/MTL 5g95yjmjFfcou5i5pgQwa31iW8wYjCP2odsLLWImEgLar26wQvza0dKTffxLLAsBxH WsHZ6qv8on5gg/okky70iggL74OmNPsLDccuenCA= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113124] g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays. Date: Thu, 28 Dec 2023 12:32:58 +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.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: xry111 at gcc dot gnu.org 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=3D113124 --- Comment #8 from Xi Ruoyao --- (In reply to Alexey Dobriyan from comment #7) > > fancy C++ extension >=20 > It is not fancy. >=20 > C99 initialisers is the only feature where Modern C beats Modern C++. Fancy or not you should ask the standard committee first. If they say "hey this is useful but we'd like to see an implementation firs= t" we can add it as an extension.=