This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/23889] non intuitive behaviour of gfortran
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2005 00:15:27 -0000
- Subject: [Bug libfortran/23889] non intuitive behaviour of gfortran
- References: <20050914222751.23889.kamaraju@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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