This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [G95] Cygwin g95


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]