[Bug libfortran/16805] Runtime failure using list directed read from string
bdavis at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 13 02:17:00 GMT 2004
------- Additional Comments From bdavis at gcc dot gnu dot org 2004-08-13 02:17 -------
There is really two problems here (so far):
First is problems reading into a substring, which
causes the device error reported above.
Second is reading list directed from an internal file:
[bdavis@localhost pr16805]$ cat a.f
PROGRAM rdch
REAL fp
CHARACTER*10 ch
ch = ' 1'
! READ (ch(5:5),*) fp
READ (ch,*) fp
STOP
END
[bdavis@localhost pr16805]$ gfc a.f
[bdavis@localhost pr16805]$ ./a.out
At line 6 of file a.f
Fortran runtime error: Success
Two different bugs in one PR. What a day !!
--bud davis
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16805
More information about the Gcc-bugs
mailing list