[Bug c/37560] bitfield not promoted to int

2008-09-17 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2008-09-17 15:55 --- Subject: Re: bitfield not promoted to int On Wed, 17 Sep 2008, clemens at ladisch dot de wrote: > According to the proposed TC in DR 315 ("If an int can represent all values of > the original type (as restricted b

[Bug c/37560] bitfield not promoted to int

2008-09-17 Thread clemens at ladisch dot de
--- Comment #2 from clemens at ladisch dot de 2008-09-17 15:11 --- According to the proposed TC in DR 315 ("If an int can represent all values of the original type (as restricted by the width, for a bit-field), the type is converted to an int;"), -- clemens at ladisch dot de changed

[Bug c/37560] bitfield not promoted to int

2008-09-17 Thread joseph at codesourcery dot com
--- Comment #1 from joseph at codesourcery dot com 2008-09-17 14:50 --- Subject: Re: New: bitfield not promoted to int On Wed, 17 Sep 2008, clemens at ladisch dot de wrote: > In the following program, the type of the assignment expression "f.x = 1" > should be int, according to the i