This is the mail archive of the
mailing list for the GCC project.
Re: typeof and bitfields
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 13 Jan 2005 18:58:55 -0500
- Subject: Re: typeof and bitfields
- References: <ACE75B3A-65BE-11D9-BE2F-000A95A4FA9E@apple.com>
On Jan 13, 2005, at 6:56 PM, Matt Austern wrote:
This was obviously a deliberate change. However, I don't see any
mention about it in the part of the manual that documents typeof. I
also can't guess why this should be different in C and in C++, or what
the rationale for the change might have been in the first place.
Sure, applying sizeof or alignof to a bit-field makes no sense. But
typeof? X::n has a perfectly good type, as the C++ compiler
The type of a bit-field is no longer the under lying type. But the
correct type which is required by the C standard.