This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/62270] -Wlogical-not-parentheses warnings
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Sep 2014 20:05:14 +0000
- Subject: [Bug fortran/62270] -Wlogical-not-parentheses warnings
- Auto-submitted: auto-generated
- References: <bug-62270-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62270
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-09-01
CC| |burnus at gcc dot gnu.org,
| |tkoenig at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Tobias, I think you added the code for interface.c.
A longer version would be
&& (formal->attr.intent != INTENT_UNKNOWN) == INTENT_UNKNOWN
or rather
formal->attr.intent != INTENT_UNKNOWN
Is this what is intended here?
The second part is identical to
(e->ref->u.ar.type != 0) != 1
Because ar_type is always unequal to zero, this reduces to
1 != 1
which again reduces to
0
which I suspect is a bug.