This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50847] New: missed diagnostics for dead code.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Oct 2011 10:25:24 +0000
- Subject: [Bug tree-optimization/50847] New: missed diagnostics for dead code.
- Auto-submitted: auto-generated
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.