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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> Diagnostics for narrowing conversions involving non-constants are controlled
> by -Wnarrowing (allowing them to be either warnings or errors). But
> narrowing conversions involving constants are always errors. Case labels
> must be constants, so making this depend on -Wnarrowing wouldn't seem
> appropriate to me.

So -Wpedantic instead? Or -fpermissive?

Reply via email to