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++


Mike Stump <mrs@apple.com> writes:

| On Tuesday, August 24, 2004, at 02:38  PM, David Carlton wrote:
| >> 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.
| 
| Grrr...  It _is_ permitted.  The standard is perfectly clean on this
| issue.

You asked people to back up their assertions.  Why about you backing
up the assertion that it is permitted?

-- Gaby


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