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: c/8131: Union of struct of union of struct bit field


On Thu, Oct 03, 2002 at 02:07:49PM +0300, Philippe Trottier wrote:
> 	I filed this bug, but seems the definition says it is not a bug.  
> Anyone here could tell me How to handle a case where 1 bit can decide  
> the format of a 32 bit word ?

Push the one bit down into each structure.  If it's at 
the same place in each structure, then it doesn't matter
which one you access to examine it.


r~


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