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++/10208: [ABI] Empty structs have zero size in C, but not in C++


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


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