public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/59727] New: reading from character string returns end of file
@ 2014-01-08 18:12 dms35 at cornell dot edu
  2014-01-08 21:15 ` [Bug libfortran/59727] [4.7/4.8/4.9 Regression] " dominiq at lps dot ens.fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dms35 at cornell dot edu @ 2014-01-08 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59727
           Summary: reading from character string returns end of file
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dms35 at cornell dot edu

Created attachment 31779
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31779&action=edit
test program showing end-of-file on reading from a string

I read a line from a file into a character variable (which has room for more
characters than are in the line). When the first character contains a * flag, I
then read some numbers, in free format, from the string. This worked fine with
earlier versions of gfortran, but with version 4.6.2, the read fails with an
"end of file" message. I can get it to work by adding an EOL to the end of the
string, but seems to me that this should not be necessary. A very small program
showing the behavior is attached.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-03-16  0:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08 18:12 [Bug libfortran/59727] New: reading from character string returns end of file dms35 at cornell dot edu
2014-01-08 21:15 ` [Bug libfortran/59727] [4.7/4.8/4.9 Regression] " dominiq at lps dot ens.fr
2014-01-09  0:26 ` kargl at gcc dot gnu.org
2014-01-10 17:55 ` dms35 at cornell dot edu
2014-01-11  4:12 ` jvdelisle at gcc dot gnu.org
2014-01-31 10:49 ` rguenth at gcc dot gnu.org
2014-03-13  5:24 ` jvdelisle at gcc dot gnu.org
2014-03-13  5:36 ` jvdelisle at gcc dot gnu.org
2014-03-14  5:08 ` jvdelisle at gcc dot gnu.org
2014-03-16  0:48 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).