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: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 08:34:15 +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
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-02 08:34:15 UTC ---
(In reply to comment #0)
> if ( (nt_save.eqv..true.) .or. (nt_save.eqv..false.) ) then
Side remark: It often is clearer and avoids precedence issues if one writes
instead:
if (nt_save .or. .not. nt_save) then
The .eqv. and .neqv. operators are then only used when comparing two logical
variables with each other.