[Bug fortran/67039] Documentation of pseudorandom number intrinsics is incorrect
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 30 22:20:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67039
--- Comment #5 from kargl at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #4)
> > > Resolved as WONTFIX?
> >
> > Probably not. See the last 2 paragraphs in comment #1.
>
> Sorry, but my question was motivated by the reading of these two
> paragraphs!-(
> Thus two more explicit questions:
>
> (1) Shall I submit a patch to replace in the manual all the "Fortran 95 and
> later" with "Fortran 90 and later" where appropriate?
No. gfortran never tried to address the Fortran 90 standard.
Whatever is stated in F90 is irrelevant to the extent that
gfortran is a Fortran 95 compiler and F90 beget F95.
>
> (2) Shall I submit a patch to replace
>
> The Fortran 2003 standard specifies the intrinsic RANDOM_SEED to initialize
> the pseudo-random numbers generator and RANDOM_NUMBER to generate
> pseudo-random numbers.
>
> with
>
> The Fortran 9? standard specifies the intrinsic RANDOM_SEED to initialize
> the pseudo-random numbers generator and RANDOM_NUMBER to generate
> pseudo-random numbers. These intrinsics should be used in new codes.
>
I would not not call out a particular standard version. Probably
something like
The Fortran standard specifies the intrinsic subroutine RANDOM_SEED
to initialize the pseudo-random numbers generator and the intrinsic
subroutine RANDOM_NUMBER to generate pseudo-random numbers. These
subroutines should be used in new codes.
More information about the Gcc-bugs
mailing list