From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11754 invoked by alias); 25 Mar 2003 16:18:22 -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 11736 invoked by uid 48); 25 Mar 2003 16:18:22 -0000 Date: Tue, 25 Mar 2003 16:26:00 -0000 Message-ID: <20030325161822.11735.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, lex.augusteijn@philips.com, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, 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: optimization/10208: [ABI] Empty structs have zero size in C, but not in C++ X-SW-Source: 2003-03/txt/msg01707.txt.bz2 List-Id: Old Synopsis: Empty structs removed by gcc but not by g++ New Synopsis: [ABI] Empty structs have zero size in C, but not in C++ State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Tue Mar 25 16:18:22 2003 State-Changed-Why: I can confirm this, for all versions since 2.95 up to present mainline (including -fabi-version=0). I don't know what is right, though. Someone with knowledge of the C and C++ ABIs should take a brief look at this. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10208