This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/52087] program does not follow logical rules
- From: "ryan.maclellan at ua dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 00:57:29 +0000
- Subject: [Bug libfortran/52087] program does not follow logical rules
- Auto-submitted: auto-generated
- References: <bug-52087-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52087
--- Comment #2 from Ryan MacLellan <ryan.maclellan at ua dot edu> 2012-02-02 00:57:29 UTC ---
I believe precedence is as follows:
arithmetic expressions evaluated first
followed by relational operators
followed by logical operators
In this case I believe .eqv. are relational operators (equivalent to .eq.) and
.or. is the logical operator. So the .or. should be evaluated last but it
doesn't seem to be. If this is not the design precedence or .eqv. is not
considered a relational operators then I may simply be in error. Otherwise I
think this is a bug.