mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
0283e1ed80
commit
a8eabe7475
|
|
@ -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>
|
2007-12-25 Tobias Burnus <burnus@net-b.de>
|
||||||
|
|
||||||
PR fortran/34514
|
PR fortran/34514
|
||||||
|
|
|
||||||
|
|
@ -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.}.
|
@code{.FALSE.} and any nonzero value is interpreted as @code{.TRUE.}.
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
INTEGER :: i = 1
|
LOGICAL :: l
|
||||||
IF (i) PRINT *, 'True'
|
l = 1
|
||||||
|
@end smallexample
|
||||||
|
@smallexample
|
||||||
|
INTEGER :: i
|
||||||
|
i = .TRUE.
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
However, there is no implicit conversion of @code{LOGICAL} and
|
However, there is no implicit conversion of @code{INTEGER} values in
|
||||||
@code{INTEGER} values performed during I/O operations.
|
@code{if}-statements, nor of @code{LOGICAL} or @code{INTEGER} values
|
||||||
|
in I/O operations.
|
||||||
|
|
||||||
@node Hollerith constants support
|
@node Hollerith constants support
|
||||||
@section Hollerith constants support
|
@section Hollerith constants support
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue