This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25334] The example for flexible array member doesn't work.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Dec 2005 20:41:36 -0000
- Subject: [Bug c/25334] The example for flexible array member doesn't work.
- References: <bug-25334-11850@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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