[G95] Cygwin g95
Toon Moene
toon@moene.indiv.nluug.nl
Thu Oct 16 20:30:00 GMT 2003
Feng Wang wrote:
[ ... MINLOC / MAXLOC ... ]
> Yes, they are implemented. I tested them in
> i686-pc-linux and passed. Maybe there are some I/O
> bugs in Cygwin.
I tried the following small test program on powerpc-unknown-linux-gnu
with yesterday's compiler:
$ cat minloc.f95
dimension i(1), v(3)
v = (/ 40.0, 25.0, 10.0 /)
print*,v
i = minloc(v)
print*,i
end
and it gives:
$ /usr/tsa/bin/gfortran -static minloc.f95
$ ./a.out
40.00000 25.00000 10.00000
0
So the array constructor works; however, minloc shouldn't be 0, but 3.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)
More information about the Fortran
mailing list