home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dove!cam!blue
- From: blue@cam.nist.gov (Jim Blue)
- Newsgroups: comp.sys.sgi
- Subject: Fortran error, 4.0.1
- Message-ID: <9818@fs3.cam.nist.gov>
- Date: 20 Aug 92 14:41:13 GMT
- Sender: news@cam.nist.gov
- Organization: National Institute of Standards and Technology, Gaithersburg, MD
- Lines: 24
-
- The following simple program illustrates a bug in Fortran under Irix 4.0.1.
- Isn't the implied do loop supposed to be legal?
-
- integer ires(9, 9)
- integer diag(9)
- do 100 j = 1, 9
- do 100 k = 1, 9
- ires(j, k) = 10 * j + k
- 100 continue
- write(*, 999) (ires(j,j), j = 1, 9)
- do 200 j = 1, 9
- diag(j) = ires(j, j)
- 200 continue
- write(*, 999) (diag(j), j = 1, 9)
- 999 format(9i4)
- stop
- end
-
- ----- The above is in junk.f -----
-
- >f77 junk.f
- >a.out
- 10 10 0 0 0 0 0**** 0
- 11 22 33 44 55 66 77 88 99
-