[Bug c++/90875] New: warnings about switch values outside range don't have associated option
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 13 20:09:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90875
Bug ID: 90875
Summary: warnings about switch values outside range don't have
associated option
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
See c_do_switch_warnings. E.g.,
void f(char c)
{
switch (c)
case 300:;
}
z.C: In function ‘void f(char)’:
z.C:4:5: warning: case label value exceeds maximum value for type
4 | case 300:;
| ^~~~
More information about the Gcc-bugs
mailing list