Help with bit-field semantics in C and C++

David Carlton david.carlton@sun.com
Tue Aug 24 21:46:00 GMT 2004


On Tue, 24 Aug 2004 14:20:53 -0700, Mike Stump <mrs@apple.com> said:
> On Tuesday, August 24, 2004, at 01:22  PM, David Carlton wrote:

>> It seems to me that the program has to behave as if it's 0 or 1

> No, this is wrong.

Just to clarify: I agree that, it's okay if, on one run of the
program, the program behaves as if it's 0 and on another run of the
program, the program behaves as if it's 1, or other similar
pathologies.  But I don't see how the standard allows the program to
behave as if the value is neither 0 nor 1.

David Carlton
david.carlton@sun.com



More information about the Gcc mailing list