This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] intrinsic rand with an optional argument
- From: Steven Bosscher <stevenb at suse dot de>
- To: Canqun Yang <canqun at nudt dot edu dot cn>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Fri, 29 Oct 2004 00:25:08 +0200
- Subject: Re: [PATCH] intrinsic rand with an optional argument
- Organization: SUSE Labs
- References: <20041018091750.0C8B95B71F@ds20.nudt.edu.cn>
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