[Bug c++/77430] New: warn about redundant assignments
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 31 19:01:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77430
Bug ID: 77430
Summary: warn about redundant assignments
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: manu at gcc dot gnu.org
Target Milestone: ---
Simple testcase:
int foo(int a)
{
a = 0;
a = 0; /* missing warning */
return a;
}
More complex cases present in GCC:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77421#c5
More information about the Gcc-bugs
mailing list