From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32313 invoked by alias); 25 Mar 2003 23:56: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 32299 invoked by uid 71); 25 Mar 2003 23:56:00 -0000 Date: Wed, 26 Mar 2003 01:46:00 -0000 Message-ID: <20030325235600.32298.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "David R. Whipple" Subject: Re: c++/10207: Empty structure initialization fails under C++ (but works under C) Reply-To: "David R. Whipple" X-SW-Source: 2003-03/txt/msg01747.txt.bz2 List-Id: The following reply was made to PR c++/10207; it has been noted by GNATS. From: "David R. Whipple" To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org Cc: Subject: Re: c++/10207: Empty structure initialization fails under C++ (but works under C) Date: Tue, 25 Mar 2003 17:50:02 -0600 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10207 I've subsequently noticed that the sizeof() returns zero for an empty C structure while returning one under C++, presumably playing a role in this problem. Is there a mechanism to encourage C++ to collapse an empty structure to zero bytes? If so then perhaps that would circumvent the reported problem.