This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
gfortran problems
- From: jeglop at rpi dot edu
- To: fortran at gcc dot gnu dot org
- Date: Wed, 09 Aug 2006 17:50:51 -0400
- Subject: gfortran problems
- Organization: Rensselaer Polytechnic Institute
- Reply-to: jeglop at rpi dot edu
Hi, I work with gfortran compiler under linux and I found a strange
problem with it: gfortran seems to mind numbers in the range
(1.D-100...10.D-100)
I tried to run this little program in gfortran:
PRINT*, 2.46D-100
STOP
END
Got this:
~> gfortran -o test test1.f
~> ./test
*** buffer overflow detected ***: ./test terminated
Aborted
Then I tried to run the following program:
PRINT*, 1.D-100
STOP
END
It runs OK:
~> gfortran -o test test1.f
~> ./test
1.000000000000000E-100
STOP 0
Then I tried to run it relplacing 1.D-100 by successively:
2.D-100
3.D-100
4.D-100
5.D-100
6.D-100
7.D-100
8.D-100
9.D-100
Got the same error msg.
Then ran it with 10.D-100, got normal output:
~> gfortran -o test test1.f
~> ./test
1.000000000000000E-099
STOP 0
Then I tried 1.00001D-100 - got the error msg
9.99999D-100 - got the erreo msg
Ran the same piece of code in g77 under cygwin: everything works fine.
Please let me know if it is possible to fix this problem.
Thank you.
Polina Zheglova
jeglop at rpi dot edu