This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gfortran problems


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]