https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123623

Alejandro Colomar <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |foss+gcc@alejandro-colomar.
                   |                            |es

--- Comment #7 from Alejandro Colomar <[email protected]> ---
(In reply to H. Peter Anvin from comment #6)
> As described in bug 119987 (marked as dup) I strongly believe this should be
> promoted to being included in -std=gnu* because this is an incredibly useful
> extension when it comes to maintaining ABI compatibility.

+1

This should be a GNU extension.  If we want to have it standardized, it would
be weird to not embrace it as a GNU extension first.

> This is also an extension that really ought to be submitted to the C/C++
> standards committees for standardization, especially with there being
> multiple implementations.

It has been discussed within the committee, and there doesn't seem to be strong
opposition, IIRC.  It's a matter of writing a paper.

We're close to the release of C2y, and it's most likely not going to be ready
for that, but a paper targeting C3x would certainly be welcome.  I could work
on it once GCC and Clang add it as a GNU extension.

> 
> It is really an extremely natural extension to anonymous structs and unions.

+1

> 
> It would also be *insanely* useful to be able to use these in system headers
> under __extension__, which currently does not seem to be possible.

+1

Reply via email to