FORTRAN compiler warning: obsolete arithmetic IF statement

前端 未结 3 957
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 12:16

I have a gfortran error:

Warning: Obsolete: arithmetic IF statement at (1) 

What does this mean? In the source (old source):

6         


        
3条回答
  •  不知归路
    2021-01-27 12:43

    Quoth Wikipedia:

    "..the Fortran statement defines three different branches depending on whether the result of an expression was negative, zero, or positive, in said order..."

    "..was finally labeled obsolescent in Fortran 90."

提交回复
热议问题