public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/50847] New: missed diagnostics for dead code.
@ 2011-10-24 10:26 pluto at agmk dot net
  2012-05-12 11:57 ` [Bug tree-optimization/50847] " pluto at agmk dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pluto at agmk dot net @ 2011-10-24 10:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50847

             Bug #: 50847
           Summary: missed diagnostics for dead code.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net


int bar()
{
        throw 42;
        return 0; // dead code
}

void zoo( int& i )
{
        return throw -1;
        i = 7; // dead code
}

it would be nice to see some (new -Wunused-statement?) warnings for marked
lines.


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

end of thread, other threads:[~2014-10-11 11:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 10:26 [Bug tree-optimization/50847] New: missed diagnostics for dead code pluto at agmk dot net
2012-05-12 11:57 ` [Bug tree-optimization/50847] " pluto at agmk dot net
2012-05-12 11:58 ` paolo.carlini at oracle dot com
2012-05-12 12:11 ` [Bug tree-optimization/50847] missed warning about unreachable code after throw statment pluto at agmk dot net
2012-05-12 12:36 ` manu at gcc dot gnu.org
2014-10-11 11:31 ` [Bug middle-end/50847] " 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).