This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71891] New: fortran/symbol.c:4864: suspicious if ?
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Jul 2016 08:04:06 +0000
- Subject: [Bug fortran/71891] New: fortran/symbol.c:4864: suspicious if ?
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71891
Bug ID: 71891
Summary: fortran/symbol.c:4864: suspicious if ?
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
I did a fortran build and used the flag -Wlogical-op. It said
../../src/trunk/gcc/fortran/symbol.c:4864:50: warning: logical ‘and’ of equal
expressions [-Wlogical-op]
if ((is_derived1 && is_derived2) || (is_union1 && is_union1))
~~~~~~~~~~^~~~~~~~~~~~
I am guessing this should be
if ((is_derived1 && is_derived2) || (is_union1 && is_union2))