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 Aug 26, 2004, at 6:26 PM, Gabriel Dos Reis wrote:
After exchange on the core reflector, John Spicer came to the
agreement that it is the enumeration value that is unspecified.

So


e = (E)7;

printf ("%d\n", (int)e));

should print 3, and not 7 as is does now, and this should work by converting integer types into enumeration types, and not by masking upon converting enumeration types to ints? Did I get that right?

We can do that. Wanna ask Tom to put this in his testsuite, so that we can get all the other C++ compilers to switch?


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