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 libfortran/16805] Runtime failure using list directed read from string


------- 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


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