Is this valid code or bug in gfortran?
Jerry DeLisle
jvdelisle@verizon.net
Fri Jun 22 20:12:00 GMT 2007
Kamaraju Kusumanchi wrote:
> Consider the code (testfile.f90) pasted in the end. (Sorry! the gmane interface
> does not allow attachements, so I have to paste the code and it is a bit long).
>
> $make
> gfortran -g -Wall -ffpe-trap=invalid,zero,overflow,underflow -fbounds-check -I
> /home/raju/software/compiledLibs/fftw_3.0.1_gcc_4.2.0_gfortran_4.2.0/include -c
> testfile.f90 -o testfile.o
>
> gfortran -g -Wall -ffpe-trap=invalid,zero,overflow,underflow -fbounds-check
> testfile.o -L
> /home/raju/software/compiledLibs/fftw_3.0.1_gcc_4.2.0_gfortran_4.2.0/lib -I
> /home/raju/software/compiledLibs/fftw_3.0.1_gcc_4.2.0_gfortran_4.2.0/include -o
> testfile
>
>
> $./testfile
> Floating point exception
>
I get the Floating Point Exception as well with 4.2, but it executes with no
apparent error with gfortran 4.3.
Jerry
More information about the Fortran
mailing list