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


> Gabriel Dos Reis writes:
> That is an argument for not returning an int.  It is not an argument
> for issueing error.  Why not return int_with_2bits?

Actually the notion of returning "signed/unsigned:N" type seems like a good
idea, which seems consistent with the intent of the specification,
especially if the result may be used to consistently to declare/cast that
bit-field type; and where then sizeof, as it's defined to yield number of
bytes, only makes sense if it consistently yields the smallest integer size
supported on the target equal to or greater than the bit-fields specified
size (as no other result seems reasonable or useful)?




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