c++/10208: [ABI] Empty structs have zero size in C, but not in C++
rth@gcc.gnu.org
rth@gcc.gnu.org
Tue Apr 1 19:32:00 GMT 2003
Synopsis: [ABI] Empty structs have zero size in C, but not in C++
State-Changed-From-To: analyzed->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 1 19:32:57 2003
State-Changed-Why:
Not a bug.
Empty structs in C are a GCC extension, and were defined a long
time ago to be defined as empty size.
Empty structs in C++ are defined by ISO to be size one.
"Don't do that."
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10208
More information about the Gcc-bugs
mailing list