[Bug c++/87951] GCC warns about reaching end of non-void function when all switch is completely handled
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 8 20:27:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Askar Safin from comment #7)
> "g++ -fstrict-enums" doesn't disable warning if I use "enum class" instead
> of plain enum.
Yes because they have different semantics ...
More information about the Gcc-bugs
mailing list