From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22603 invoked by alias); 5 Mar 2009 13:53:15 -0000 Received: (qmail 22558 invoked by alias); 5 Mar 2009 13:53:02 -0000 Date: Thu, 05 Mar 2009 13:53:00 -0000 Message-ID: <20090305135302.22557.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/39383] sizeof object with zero-length array ignores initializer In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "joseph at codesourcery dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg00389.txt.bz2 ------- 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