This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/16805] Runtime failure using list directed read from string
- From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2004 02:17:06 -0000
- Subject: [Bug libfortran/16805] Runtime failure using list directed read from string
- References: <20040728175903.16805.aovb94@dsl.pipex.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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