[Bug fortran/34532] Doc error or rej.valid vendor extension: Integer as logical in IF expressions
dfranke at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 21 13:01:00 GMT 2007
------- Comment #4 from dfranke at gcc dot gnu dot org 2007-12-21 13:01 -------
Index: gfortran.texi
===================================================================
--- gfortran.texi (revision 131109)
+++ gfortran.texi (working copy)
@@ -1165,12 +1165,17 @@ zero, and @code{.TRUE.} is interpreted a
@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
Ok?
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dfranke at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34532
More information about the Gcc-bugs
mailing list