[Bug c/39383] sizeof object with zero-length array ignores initializer

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 5 13:53:00 GMT 2009



------- Comment #4 from joseph at codesourcery dot com  2009-03-05 13:53 -------
Subject: Re:  sizeof object with zero-length array ignores
 initializer

On Thu, 5 Mar 2009, ebotcazou at gcc dot gnu dot org wrote:

> ------- Comment #3 from ebotcazou at gcc dot gnu dot org  2009-03-05 13:31 -------
> > No, the case is an extension to C.  6.5.3.4 was obviously written without this
> > case in mind.
> 
> Not at all, see 6.7.2.1 (16):

Standard C does not permit initializing the flexible array member.


-- 


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



More information about the Gcc-bugs mailing list