From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22041 invoked by alias); 1 Apr 2003 22:06: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 22019 invoked by uid 71); 1 Apr 2003 22:06:00 -0000 Date: Tue, 01 Apr 2003 22:06:00 -0000 Message-ID: <20030401220600.22018.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Geoff Keating Subject: Re: c++/10208: [ABI] Empty structs have zero size in C, but not in C++ Reply-To: Geoff Keating X-SW-Source: 2003-04/txt/msg00039.txt.bz2 List-Id: The following reply was made to PR c++/10208; it has been noted by GNATS. From: Geoff Keating To: rth@gcc.gnu.org Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, lex.augusteijn@philips.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10208: [ABI] Empty structs have zero size in C, but not in C++ Date: 01 Apr 2003 14:00:23 -0800 rth@gcc.gnu.org writes: > Synopsis: [ABI] Empty structs have zero size in C, but not in C++ > > State-Changed-From-To: analyzed->closed > State-Changed-By: rth > State-Changed-When: Tue Apr 1 19:32:57 2003 > State-Changed-Why: > Not a bug. > > Empty structs in C are a GCC extension, and were defined a long > time ago to be defined as empty size. This should be documented, though; I'll make a patch. -- - Geoffrey Keating