Bitfields in unions

Eamonn McManus em at dce.ie
Tue Apr 16 21:29:27 AEST 1991


Can a union contain a bitfield?  K&R2 obliquely implies no, while
gcc -pedantic says yes.  I'm inclined to believe K&R myself, though
at least on machines without alignment constraints such a thing
would seem reasonable.

,
Eamonn



More information about the Comp.std.c mailing list