Document empty structures

Geoffrey Keating
Sat Apr 12 21:25:00 GMT 2003

On Saturday, April 12, 2003, at 04:07  AM, Joseph S. Myers wrote:

> On Fri, 11 Apr 2003, Geoffrey Keating wrote:
>> This adds documentation of GCC's empty structure extension.
> I think there needs to be something about how empty structures interact
> with initializer lists (when initializing a structure which has as an
> element an empty structure): do lists of scalars ignore the empty
> structure, does { } explicitly initialize it, ...?
That sounds like a good idea.  I know you can do:

struct empty {};
struct empty x = {};

but I don't know what happens if you have structures containing these 

More information about the Gcc-patches mailing list