[Bug libfortran/23889] non intuitive behaviour of gfortran
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 15 00:16:00 GMT 2005
------- Additional Comments From kargl at gcc dot gnu dot org 2005-09-15 00:15 -------
(In reply to comment #0)
> consider the following program
> program random
> implicit none
> real :: x
> call random_seed();
> call random_number(x);
> write(*,*) x
> end program random
>
> When I run this program, I want to output different random numbers for
> each run. This does not happen with gfortran.
>
> I agree that the current gfortran's behaviour is standard conforming.
Enough said.
> But it is counter intuitive.
It is counter intuitive to you not me.
> Absoft 8.0 exhibits this behaviour
>
> % f90 random.f90
> % ./a.out
> 0.139087
> % ./a.out
> 0.139087
> % ./a.out
> 0.139087
> % ./a.out
> 0.139087
>
>
> So absoft, intel, g95 compilers generate different sequences on
> subsequent runs.
What is Absoft's behavior? It appears to agree with gfortran.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23889
More information about the Gcc-bugs
mailing list