This is the mail archive of the gcc-patches@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]

Re: [patch, fortran, documentation] PR34532 - implicit conversion, Integer as logical


Daniel Franke wrote:
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

OK


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