typeof and bitfields

Paul Schlie schlie@comcast.net
Tue Jan 18 18:05:00 GMT 2005


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





More information about the Gcc mailing list