This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/50847] New: missed diagnostics for dead code.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]