This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]