public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/65472] New: -Wunreachable-code failure
@ 2015-03-19 15:54 skvadrik at gmail dot com
  2015-03-19 15:54 ` [Bug middle-end/65472] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: skvadrik at gmail dot com @ 2015-03-19 15:54 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-19 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19 15:54 [Bug middle-end/65472] New: -Wunreachable-code failure skvadrik at gmail dot com
2015-03-19 15:54 ` [Bug middle-end/65472] " mpolacek at gcc dot gnu.org
2015-03-19 15:58 ` skvadrik at gmail dot com
2015-03-19 16:11 ` mpolacek at gcc dot gnu.org
2015-03-19 16:11 ` skvadrik at gmail dot com
2015-03-19 16:13 ` manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).