This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [G95] Cygwin g95
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Feng Wang <wf_cs at yahoo dot com>
- Cc: Vijayendra Munikoti <munikoti dot vijayendra at bam dot de>, gcc-g95-devel at lists dot sourceforge dot net, fortran at gcc dot gnu dot org
- Date: Thu, 16 Oct 2003 22:32:03 +0200
- Subject: Re: [G95] Cygwin g95
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20031016033951.2905.qmail@web15306.mail.bjs.yahoo.com>
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)