This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Designated Initializers in C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]