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.