Authors: Jay Ghiron
Date: 2026-03-25
Submitted against: C23
Status: Open
Cross-references: 1072
The proposal N3722 was framed as a clarification, rather than a new feature. It appears that this was never voted on, however. Specifically this is the result of discussion in GCC issue 115566.
Another issue in initialization is that braced initializers used to initialize objects with scalar type are not specified as allowing trailing commas (see reflector message 34083, 25 Sep 2025, and subsequent discussion):
The initializer for a scalar shall be a single expression, optionally enclosed in braces, or it shall be an empty initializer.
(C23 6.7.11 "Initialization" paragraph 12.)
Existing implementations do not reject using trailing commas for this purpose, and there seems to be no reason to reject trailing commas here.
Is the following declaration meant to be valid in C23?
char x[]=("abc");
Is the following declaration meant to be valid?
int y={0,};
Comment from Issues list maintainer on 2026-11-26:
This issue was discussed at the November 2026 (Búzios) meeting of WG14. The committee gave direction for a "No" response to the first question, and did not agree a direction on the second question. It was noted that if someone tries the example from the second question on many different implementations, the resulting information might be helpful for further discussion of this issue.