https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80698
Bug ID: 80698 Summary: new unreachable code implementation possible? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jg at jguk dot org Target Milestone: --- Hello I know -Wunreachable-code implementation was removed in 2010, it would be great to have again. Simple example below, had some code after a "break" which then never ran, but didn't spot it until it was reviewed by a programmer // gcc -O3 -Wall -Werror main2.c -o main2 #include <stdio.h> int main (void) { for (;;) { break; printf("Hello\n"); } return 0; } Happy to pay a bug bounty $200 for committed implementation!