This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]