This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34532] Doc error or rej.valid vendor extension: Integer as logical in IF expressions
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2007 13:01:36 -0000
- Subject: [Bug fortran/34532] Doc error or rej.valid vendor extension: Integer as logical in IF expressions
- References: <bug-34532-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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