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


> From: Andreas Schwab <schwab@suse.de>
> Subject: Re: typeof and bitfields
> 
> Paul Schlie <schlie@comcast.net> writes:
> 
>> (which would seem to support the notion that: typedef unsigned:4 ubf_4
> 
> The syntax of C does not allow :4 at this place.

Understand that it's not formally supported in C's syntax specification, but
curiously nor is the definition of struct { :3; }, although the text seems
to implies it defines a struct containing an 3-bit unnamed (and unspecified)
integer type?

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; } ?




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