Re: [Linux-ia64] gcc bug

From: Keith Owens <>
Date: 2001-01-26 20:40:22
On Fri, 26 Jan 2001 00:09:55 -0800, 
David Mosberger <> wrote:
>The attached program demonstrates a gcc code generation bug.
>struct f {
>  unsigned long lo : 32;
>  unsigned long hi : 32;

K&R says "Fields may be declared only as ints".  The C99 rational says
"Three types of bit fields are now defined: plain int calls for
implementation-defined signedness (as in K&R), signed int calls for
assuredly signed fields, and unsigned int calls for unsigned fields".
I am surprised that the compiler accepted unsigned long, it is not
listed as a gcc extension.  Do you get the same error when those fields
are changed to unsigned int?
Received on Fri Jan 26 01:40:36 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:01 EST