From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 848 invoked by alias); 26 Dec 2002 20:26:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 834 invoked by uid 71); 26 Dec 2002 20:26:00 -0000 Date: Thu, 26 Dec 2002 12:26:00 -0000 Message-ID: <20021226202600.833.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Joseph S. Myers" Subject: Re: c/9058: structure with flexible array member: offsetof() != sizeof() Reply-To: "Joseph S. Myers" X-SW-Source: 2002-12/txt/msg01299.txt.bz2 List-Id: The following reply was made to PR c/9058; it has been noted by GNATS. From: "Joseph S. Myers" To: Cc: , Subject: Re: c/9058: structure with flexible array member: offsetof() != sizeof() Date: Thu, 26 Dec 2002 20:16:24 +0000 (GMT) On 26 Dec 2002 manfred@colorfullife.com wrote: > Now sizeof(struct x) is 8, offsetof(struct x, c) is 6. That seems to > contradice the C99 standard: section 6.7.2.1, constraint 16. Please read the suggested TC in response to DR 282. (See N983 and the Santa Cruz minutes - the DR log hasn't yet been updated.) -- Joseph S. Myers jsm28@cam.ac.uk