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: Mark Mitchell <mark at codesourcery dot com>
- Cc: Mike Stump <mrs at apple dot com>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Dave Korn <dk at artimi dot com>, "'Roger Sayle'" <roger at eyesopen dot com>, "'Joe Buck'" <Joe dot Buck at synopsys dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 24 Aug 2004 14:38:54 -0700
- Subject: Re: Help with bit-field semantics in C and C++
- References: <195B2A50-F60D-11D8-AF5A-003065BDF310@apple.com><412BAEF5.6010302@codesourcery.com>
On Tue, 24 Aug 2004 14:11:17 -0700, Mark Mitchell <mark@codesourcery.com> said:
> The standard is just plain not clear here. There's nothing that says
> definitively what should happen, either with the conversion or with
> the subsequent use, assuming that conversion to a value outside the
> enum range is permitted.
But that last assumption isn't correct, is it? I don't see how that's
consistent with 7.2p9: it talks about "the resulting enumeration
value", which should surely mean that a value outside the enum range
_isn't_ permitted.
David Carlton
david.carlton@sun.com