gfortran manual : error in function range documentation ?
Tobias Burnus
burnus@net-b.de
Tue Jan 20 18:51:00 GMT 2009
Hello Jacque,
Jacques Lefrere wrote:
> I thought that the argument of the intrinsic function "range"
> could be integer, real or complex.
> But the manual mentions that it should be of type real or complex only.
> (see "http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gfortran/RANGE.html#RANGE")
Corrected for 4.4.0. Thanks for the report. Note: The better email
address for gfortran issues is fortran@gcc.
Tobias
PS: I committed as obvious in Rev. 143524:
Index: ChangeLog
===================================================================
--- ChangeLog (Revision 143523)
+++ ChangeLog (Arbeitskopie)
@@ -1,3 +1,7 @@
+2009-01-20 Tobias Burnus <burnus@net-b.de>
+
+ * invoke.texi (RANGE): RANGE also takes INTEGER arguments.
+
2009-01-19 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/38859
Index: intrinsic.texi
===================================================================
--- intrinsic.texi (Revision 143523)
+++ intrinsic.texi (Arbeitskopie)
@@ -214,7 +214,7 @@
* @code{RANDOM_NUMBER}: RANDOM_NUMBER, Pseudo-random number
* @code{RANDOM_SEED}: RANDOM_SEED, Initialize a pseudo-random number
sequence
* @code{RAND}: RAND, Real pseudo-random number
-* @code{RANGE}: RANGE, Decimal exponent range of a real kind
+* @code{RANGE}: RANGE, Decimal exponent range
* @code{RAN}: RAN, Real pseudo-random number
* @code{REAL}: REAL, Convert to real type
* @code{RENAME}: RENAME, Rename a file
@@ -8884,7 +8884,7 @@
@node RANGE
-@section @code{RANGE} --- Decimal exponent range of a real kind
+@section @code{RANGE} --- Decimal exponent range
@fnindex RANGE
@cindex model representation, range
@@ -8904,7 +8904,8 @@
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
-@item @var{X} @tab Shall be of type @code{REAL} or @code{COMPLEX}.
+@item @var{X} @tab Shall be of type @code{INTEGER}, @code{REAL}
+or @code{COMPLEX}.
@end multitable
@item @emph{Return value}:
More information about the Gcc
mailing list