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 fort...@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 <bur...@net-b.de> + + * invoke.texi (RANGE): RANGE also takes INTEGER arguments. + 2009-01-19 Mikael Morin <mikael.mo...@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}: