This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]