From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1960 invoked by alias); 9 Aug 2004 11:23:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1941 invoked from network); 9 Aug 2004 11:23:29 -0000 Received: from unknown (HELO lon-mail-4.gradwell.net) (193.111.201.130) by sourceware.org with SMTP; 9 Aug 2004 11:23:29 -0000 Received: (qmail 67533 invoked from network); 9 Aug 2004 11:23:27 -0000 Received: from digraph.polyomino.org.uk (postmaster%pop3.polyomino.org.uk@81.187.227.50) by lon-mail-4.gradwell.net with SMTP; 9 Aug 2004 11:23:27 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.41) id 1Bu8FT-0001e9-1o; Mon, 09 Aug 2004 11:23:27 +0000 Date: Mon, 09 Aug 2004 11:23:00 -0000 From: "Joseph S. Myers" X-X-Sender: jsm28@digraph.polyomino.org.uk To: pinskia at gcc dot gnu dot org cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug c/16566] [3.4/3.5 Regression] ICE with flexible arrays In-Reply-To: <20040809002652.10115.qmail@sourceware.org> Message-ID: References: <20040715141619.16566.ppelissi@caramail.com> <20040809002652.10115.qmail@sourceware.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-08/txt/msg00635.txt.bz2 List-Id: Note that this already fails with 3.2.3 if you use -std=c99 -pedantic. Also note that though the code should be accepted, it has undefined behavior if executed; a non-lvalue with structure with flexible array member type is a value that does not refer to an object (other than a temporary that disappears at the next sequence point), so members of the flexible array can't be accessed without undefined behavior. -- Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/ jsm@polyomino.org.uk (personal mail) jsm28@gcc.gnu.org (Bugzilla assignments and CCs)