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: unassig...@gcc.gnu.org
        ReportedBy: pl...@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.

Reply via email to