This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] intrinsic rand with an optional argument


On Monday 18 October 2004 11:17, Canqun Yang wrote:
> The intrinsic rand should have an optional argument,
> so both cases in following example are correct.
>
> program rand_ex
>    write (*, *) rand ()
>    write (*, *) rand (i)
> end

This page agrees, so why wouldn't we? ;-)
http://gcc.gnu.org/onlinedocs/gcc-3.4.2/g77/Rand-Intrinsic.html#Rand-Intrinsic>

> I attached a patch to fix gfortran for such issue.
>
> OK to commit?

Yes.

Gr.
Steevn



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]