This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c/8131: Union of struct of union of struct bit field
- From: Richard Henderson <rth at redhat dot com>
- To: Philippe Trottier <ptrottier at invers dot fi>
- Cc: gcc at gcc dot gnu dot org, nathan at gcc dot gnu dot org
- Date: Thu, 3 Oct 2002 12:18:04 -0700
- Subject: Re: c/8131: Union of struct of union of struct bit field
- References: <20021003105049.844.qmail@sources.redhat.com> <5AC076D0-D6C0-11D6-A2DC-00306543F85E@invers.fi>
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~