https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65472
Bug ID: 65472 Summary: -Wunreachable-code failure Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 35065 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35065&action=edit 1.c Given the following code: extern void f (); void g () { for (;;) { f (); continue; f (); } } $ gcc -Wunreachable-code -c 1.c $ clang -Wunreachable-code -c 1.c 1.c:9:3: warning: code will never be executed [-Wunreachable-code] f (); ^ 1 warning generated.