https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67314

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #4)
> The trouble is that while gcc
> makes it easy to assign without a warning values to enums that are outside
> the range of the enumerated type, it makes it difficult to handle such
> values in case and switch statements without eliciting one of the -Wswitch
> warnings.  In those cases gcc either complains about "case values being not
> in enumerated type" or it complains about a "switch missing default case"
> and there doesn't seem to be an easy way to make it happy. 

Cast to int?

Reply via email to