On Tue, Sep 16, 2014 at 01:14:35PM +0200, David Brown wrote:
> 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?

???  Designated initializers definitely are not implemented in G++,
what there is is just very limited parsing, but the C++ FE requires that
the designators are just useless annotations, you can't initialize even
a POD out of order with the designators, skip some field, initialize
something twice etc.

        Jakub

Reply via email to