This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/40020] Bad value during floating point read



------- Comment #1 from kargl at gcc dot gnu dot org  2009-05-04 22:17 -------
(In reply to comment #0)
> I tried to migrate well running program from g77 to gfortran.
> I found a problem with new gfortan:
> >>Fortran runtime error: Bad value during floating point read<<
> to read REAL from file.
> >> read(nin,'(6e11.0)') a
> and numbers were:
> >> 7.73118- 3 4.26617+ 0 8.17285- 3 ...
> It helps to add number '0' to exponent instead of space
> >> 7.73118-03 4.26617+00 8.17285-03 ...
> Input decks are very old so I'm not sure if it was some feature 
> off g77.

Works fine with 4.5.0 and I suspect 4.4.0.  Please try 4.4.0.


REMOVE:kargl[30] gfc4x -o z gf.f90
REMOVE:kargl[31] ./z
0.12345e- 3
  1.23449994E-04
REMOVE:kargl[32] gfc43 -o z gf.f90
REMOVE:kargl[33] ./z
0.12345e- 3
At line 3 of file gf.f90 (unit = 5, file = 'stdin')
Fortran runtime error: Bad value during floating point read
REMOVE:kargl[34] cat gf.f90
program gf
  real x
  read(*,'(e11.0)') x
  write(*,*) x
end program gf


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40020


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