[Bug c++/80460] Incorrect fallthrough warning after [[noreturn]] function inside always-true conditional
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 19 10:36:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80460
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Would that disable warning for:
if (0)
switch (x)
{
case 5:
x++;
case 6:
x += 17;
break;
}
?
Perhaps that is ok. Wouldn't that also disable warning for:
if (x > 24)
goto lab;
if (0)
{
lab:
switch (x)
{
case 37:
x++;
case 38:
x += 18;
break;
}
}
? On the latter we should warn...
More information about the Gcc-bugs
mailing list