https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90875
--- Comment #1 from Matthew Beliveau <mbelivea at gcc dot gnu.org> --- Author: mbelivea Date: Fri Jun 21 17:50:29 2019 New Revision: 272559 URL: https://gcc.gnu.org/viewcvs?rev=272559&root=gcc&view=rev Log: PR c++/90875 - added -Wswitch-outside-range option * doc/invoke.texi (Wswitch-outside-range): Document. * c.opt (Wswitch-outside-range): Added new option. * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range. * c-c++-common/Wswitch-outside-range-1.c: New test. * c-c++-common/Wswitch-outside-range-2.c: New test. * c-c++-common/Wswitch-outside-range-3.c: New test. * c-c++-common/Wswitch-outside-range-4.c: New test. Modified: trunk/gcc/ChangeLog trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-warn.c trunk/gcc/c-family/c.opt trunk/gcc/doc/invoke.texi trunk/gcc/testsuite/ChangeLog