------- Comment #2 from manu at gcc dot gnu dot org 2007-01-21 18:08 -------
I am not sure this is such a good idea. A casting typically means "I want to
really do this". GCC normally suppress warnings when casting is added. A
warning when you assign when enum type to another and the first enum is not a
subset of the second could still be useful, but the casting should prevent the
warning.
I am not sure what happens for such assignment, is it undefined behaviour? If
so, perhaps it should be warned by Wundefined. If not, then perhaps we could
add it to Wconversion.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30357