------- Comment #4 from rguenth at gcc dot gnu dot org 2009-09-21 12:44 ------- In C++ an enum type only has the minimum number of bits that is required to store all its values, thus 1 in your case. So (foo)5 is a truncation.
-- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425