From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D75133858D37; Wed, 27 Dec 2023 16:49:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D75133858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703695782; bh=t1Sx8JpCwrmEmSmA9DUEwoXCe/ks9/2Kb6SmEig4lbA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p5UywzKh6SF6vdWkGx88bL7yLEb6HOQYUUROKBTEiXgI7Vo9Kf/1jlIf1bVrC61La zUrG9KFdG/k0JzkJ2v11/4PqntkCccgbjSuNEKrFuags1R79fcUe97PnJdJVEosFFu qFmyvm/n6tuyu+xHuFE5vzlxH/nnJvXaFltcP0G4= From: "adobriyan at gmail dot com" 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: Wed, 27 Dec 2023 16:49:41 +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: adobriyan 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=3D113124 --- Comment #5 from Alexey Dobriyan --- My standardspeak is very bad. I think std::is_trivial_v types should have relaxed initialisation ordering, because all C structs and unions are std::is_trivial_v. If I understand this stuff correctly, ordering became stricter because of interaction with ctor ordering which is Very Important in C++. But if there are no ctors, then there is no problem to begin with.=