aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Franke <franke.daniel@gmail.com>2007-12-26 01:36:46 -0500
committerDaniel Franke <dfranke@gcc.gnu.org>2007-12-26 01:36:46 -0500
commita8eabe747536302adff780a868a185d081c77c3c (patch)
treee95ce8598e8cb9268b65c51a1d64d11bcbead7cd /gcc
parent0283e1ed80d26b26634debde163d6c37db262414 (diff)
downloadgcc-a8eabe747536302adff780a868a185d081c77c3c.zip
gcc-a8eabe747536302adff780a868a185d081c77c3c.tar.gz
gcc-a8eabe747536302adff780a868a185d081c77c3c.tar.bz2
re PR fortran/34532 (Doc error or rej.valid vendor extension: Integer as logical in IF expressions)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/gfortran.texi13
2 files changed, 15 insertions, 4 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 3e16f9b..57574ce 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -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
diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index 43e3d3a..6e9cb62 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -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