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++


rth at gcc dot gnu dot org writes:

> 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.

This should be documented, though; I'll make a patch.

-- 
- Geoffrey Keating <geoffk at geoffk dot org>


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