[Bug c/88144] New: remove long-obsolete syntax for designated initializers
sandra at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 22 02:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88144
Bug ID: 88144
Summary: remove long-obsolete syntax for designated
initializers
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sandra at gcc dot gnu.org
Target Milestone: ---
The GCC manual documents alternative syntax for designated initializers that it
describes as "obsolete since GCC 2.5". It appears this syntax is still
accepted in both C and C++.
GCC 2.5 was released in 1993. Why is this still a part of GCC? Shouldn't
things that have been obsolete this long simply be removed? Or, if the
alternative syntax is not obsolete after all, the docs should be fixed not to
say that it is.
Test case:
struct point { int x, y; };
struct point p = { x: 69, y: 42 };
More information about the Gcc-bugs
mailing list