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 05:56  PM, Gabriel Dos Reis wrote:
| > | The above program violates no rules of C++.  The value printed is
| > | either specified, or unspecified.  Which do you think it is, and if
| > | specified, which value is printed?
| >
| > you forgot the option implementation-defined, which actually is the
| > case here.
| 
| Ok, you say implementation-defined, now cite the rule that makes this
| so.

Oh that one is easy. It is about the value representation (of the
underlying integer type). 3.9/4.
Do you feel like this is the most important aspect of the enum question?
I don't think so, but for the sake of argument, I don't mind discussing
this with you.

-- Gaby


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