]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/34532 (Doc error or rej.valid vendor extension: Integer as logical...
authorDaniel Franke <franke.daniel@gmail.com>
Wed, 26 Dec 2007 06:36:46 +0000 (01:36 -0500)
committerDaniel Franke <dfranke@gcc.gnu.org>
Wed, 26 Dec 2007 06:36:46 +0000 (01:36 -0500)
2007-12-25  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/34532
* gfortran.texi: Fixed section about implicit conversion of logical
and integer variables.

From-SVN: r131180

gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi

index 3e16f9bd5a8f255ce0c5457ad2052a377a0a89e5..57574cee239b05bff2d6101fdb0bb827e8ac5712 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-26  Daniel Franke  <franke.daniel@gmail.com>
+
+       PR fortran/34532
+       * gfortran.texi: Fixed section about implicit conversion of
+       logical and integer variables.
+
 2007-12-25  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/34514
index 43e3d3a1ff6a99063d0ce0ad34769e13768341bd..6e9cb62b3d17e1471e6ec515467c8073d01d09fe 100644 (file)
@@ -1165,12 +1165,17 @@ zero, and @code{.TRUE.} is interpreted as one.  When converting from
 @code{.FALSE.} and any nonzero value is interpreted as @code{.TRUE.}.
 
 @smallexample
-       INTEGER :: i = 1
-       IF (i) PRINT *, 'True'
+        LOGICAL :: l
+        l = 1
+@end smallexample
+@smallexample
+        INTEGER :: i
+        i = .TRUE.
 @end smallexample
 
-However, there is no implicit conversion of @code{LOGICAL} and
-@code{INTEGER} values performed during I/O operations.
+However, there is no implicit conversion of @code{INTEGER} values in
+@code{if}-statements, nor of @code{LOGICAL} or @code{INTEGER} values
+in I/O operations.
 
 @node Hollerith constants support
 @section Hollerith constants support