[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug c++/77431] New: warn for having the same code in if-else branches
From: "manu at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2016-08-31 19:11:35
Message-ID: bug-77431-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77431
Bug ID: 77431
Summary: warn for having the same code in if-else branches
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
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)
{
if (a)
return 0;
else
return 0;
}
Complex testcase in GCC sources: PR77424=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic