c++/10207: Empty structure initialization fails under C++ (but works under C)

David R. Whipple vencain@swbell.net
Wed Mar 26 01:46:00 GMT 2003


The following reply was made to PR c++/10207; it has been noted by GNATS.

From: "David R. Whipple" <vencain@swbell.net>
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.
 



More information about the Gcc-prs mailing list