This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/52087] program does not follow logical rules


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]