[Bug c/25334] The example for flexible array member doesn't work.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 12 20:41:00 GMT 2005



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-12 20:41 -------
This is not what the documention says.
It is talking about global variables and not a local ones.
"Instead GCC allows static initialization of flexible array members. "

Your example is not static initilzating of the a struct.

Reference:
http://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html#Zero-Length


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list