The documentation (5.11) indicates that
$> cat if.f90
INTEGER :: i = 1
IF (i) PRINT *, 'True'
END
is valid in gfortran, but
$> gfortran -g if.f90
In file if.f90:2
IF (i) PRINT *, 'True'
1
Error: ELSE IF clause at (1) requires a scalar LOGICAL expression
As discussed in bugzilla, this is to fix the docs.
2007-12-25 Daniel Franke <franke.daniel@gmail.com>
PR fortran/34532
* gfortran.texi: Fixed section about implicit conversion of logical
and integer variables.
Tested doc, dvi and html targets. Ok for trunk?
Regards
Daniel