------- Comment #7 from manu at gcc dot gnu dot org 2010-04-08 09:02 ------- (In reply to comment #1) > > Don't we already have a warning that warns about assigning values outside the > range of an enum? >
pr43680.C:14:26: warning: the result of the conversion is unspecified because â5â is outside the range of type âEâ [-Wconversion] Implemented by yours truly in GCC 4.5. (or perhaps already in 4.4.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43680