| Issue |
160412
|
| Summary |
clang: Support -Wswitch-unreachable
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
jstengleingithub
|
gcc 16 supports -Wswitch-unreachable
https://godbolt.org/z/b6KeT85P5
<source>:6:5: warning: statement will never be executed [-Wswitch-unreachable]
Clang trunk doesn't show this warning under -Wall or -Wextra.
Gcc correctly doesn't show warning for nested loop/switch case:
https://godbolt.org/z/8Y8bjdWG8
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs