I am usin ifc 7.1 in a pentium III machine with redhat 9.0 (with a pach to the glibc library).
I have a program which is using the rand function.
I am compiling some .f and .f90 fortran files with the options: -g -C -d2 -Vaxlib
I have not errors in the compilation but when I execute the program I have the following error correspondig to the line test with the rand() function. The message
** Address Error **
Diagnostics Entered From MAIN PROGRAM Line 15
a = 0.000000E+00
b = 0.000000E+00
c = 0.000000E+00
l = 0
lc = 0
End of diagnostics
the program file is:
! Automatic Time-stamp:
INTEGER(4) lc, l
REAL(4), ALLOCATABLE, DIMENSION (:) :: xc, yc, syc
REAL(4), DIMENSION (10) :: PAR_CUR
REAL(4) :: A, B, C
EXTERNAL xtrack, paralin, curvcorr
real(4) :: rand
END PROGRAM spectrum_gen
Do you have any suggestion?
In an other compiler (xlf) I have no problem.