[Bug c/53548] allow flexible array members in unions like zero-length arrays

carlos_odonell at mentor dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 4 00:50:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53548

Carlos O'Donell <carlos_odonell at mentor dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos_odonell at mentor
                   |                            |dot com

--- Comment #1 from Carlos O'Donell <carlos_odonell at mentor dot com> 2012-06-04 00:49:55 UTC ---
There are several practical cases where it would be nice to support this kind
of construct. Structures that *end* with a variable length arrays are used in
networking to represent a variable length result. In particular the example in
this issue is taken from a recent reworking of tftp.h in glibc which uses a
similar construct.



More information about the Gcc-bugs mailing list