This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with bit-field semantics in C and C++
- From: David Carlton <david dot carlton at sun dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: David Carlton <David dot Carlton at sun dot com>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Joe Buck <Joe dot Buck at synopsys dot COM>, Roger Sayle <roger at eyesopen dot com>, Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 24 Aug 2004 14:42:02 -0700
- Subject: Re: Help with bit-field semantics in C and C++
- References: <7B01FCE2-F613-11D8-AF5A-003065BDF310@apple.com>
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