This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Designated Initializers in C++
- From: David Brown <david at westcontrol dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 16 Sep 2014 13:14:35 +0200
- Subject: Designated Initializers in C++
- Authentication-results: sourceware.org; auth=none
After a recent discussion about designated initializers in C++, I
noticed that they are accepted by modern gcc (when gcc extensions are
enabled).
On <https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html>, the
documentation specifically says "This extension is not implemented in
GNU C++". That certainly used to be the case - as far as I have tested,
it was implemented in gcc 4.6 or 4.7.
Could someone with commit access to the documentation fix that sentence?
It seems a bit excessive to file a bug just for that correction.
(And thank you to who ever implemented designated initializers in C++ in
gcc - it is always irritating when there is something that C can do but
not C++.)
mvh.,
David