Hi, > > Is this a bug or am I violating C++ standard? > > The code violates the C++ standard. Thank you for reply and analysis! > dead code. Why? Because according to ISO 14882, Quartet *MUST* be between > -4 and 3 (3 signed bits). And it *KNOWS* that int i was set from a Quartet. Thanks, I think you are refering to 5.2.9 paragraph 7, correct? 7 A value of integral type can be explicitly converted to an enumeration type. The value is unchanged if the integral value is within the range of the enumeration values (_dcl.enum_). Otherwise, the resulting enumeration value is unspecified. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Best Regards, (Hiroki Kaminaga) t --