This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typeof and bitfields
- From: Andreas Schwab <schwab at suse dot de>
- To: Paul Schlie <schlie at comcast dot net>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 14 Jan 2005 11:23:26 +0100
- Subject: Re: typeof and bitfields
- References: <BE0C8C09.89FA%schlie@comcast.net>
Paul Schlie <schlie@comcast.net> writes:
> Wonder if the integer type/size that is allocated upon access, would be
> more useful, consistent, and pertinent for typeof and sizeof to return.
You can't apply sizeof to a bit-field member.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."