FORTRAN bug?

craig@jcb-sc.com craig@jcb-sc.com
Sat Jul 31 23:33:00 GMT 1999


This was not a g77/gcc bug, it was a bug in your code.  After this line,
I suggest you insert the following line:

      iaddr = iralloc(npts, arr, iarr)
      iarr = iarr + 1

Normally, we expect users to actually track down the *bug* before
reporting it to us, rather than simply reporting that their code
doesn't work as expected.  Further, anyone attempting the sort of
combination of C and Fortran code you're attempting should have enoug
of an understanding of the issues (such as C's 0-based arrays vs.
Fortran's 1-based arrays) to debug this sort of code without much
trouble, before asking us to help.

        tq vm, (burley)



More information about the Gcc-bugs mailing list