This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10207: Empty structure initialization fails under C++ (butworks under C)
- From: "David R. Whipple" <vencain at swbell dot net>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- Date: Tue, 25 Mar 2003 17:50:02 -0600
- Subject: Re: c++/10207: Empty structure initialization fails under C++ (butworks under C)
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.