https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126033
Bug ID: 126033
Summary: fortran/dump-parse-tree.cc:3127:12: warning: this
condition has identical branches
[-Wduplicated-branches]
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Source code is
else if (c->op == EXEC_SELECT_TYPE)
fputs ("SELECT CASE ", dumpfile); // Preceded by SELECT TYPE construct
else
fputs ("SELECT CASE ", dumpfile);
git blame says:
3fd46d859cda gcc/fortran/dump-parse-tree.cc (Paul Thomas
2024-03-15 06:52:59 +0000 3128) fputs ("SELECT CASE ", dumpfile); // Preceded
by SELECT TYPE construct
dfd6231ea362 gcc/fortran/dump-parse-tree.c (Paul Thomas
2016-10-23 18:09:14 +0000 3129) else
dfd6231ea362 gcc/fortran/dump-parse-tree.c (Paul Thomas
2016-10-23 18:09:14 +0000 3130) fputs ("SELECT CASE ", dumpfile);