This is the mail archive of the gcc@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: typeof and bitfields


Paul Schlie <schlie@comcast.net> writes:

| So by implication would typedef struct { BF_3:3 } be required syntactically
| to define a 3-bit (unspecifed) bit-field type which may then be used to
| subsequently declare a named member: struct { BF_3 x; } ?

I think the issue of whether typedef unsigned :3 BF should be
allowed is largely independent of typeof on bit-field.
True there are various semantics to choose from and this is not
mathematics; but chosing to spit an error seems to be the most
annoyingly useless semantics.

-- Gaby


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