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 fortran/49296] [4.6/4.7 Regression] Wrong END OF FILE error for list-directed I/O with strings


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.6/4.7 Regression] Wrong  |[4.6/4.7 Regression] Wrong
                   |I/O END OF FILE             |END OF FILE error for
                   |                            |list-directed I/O with
                   |                            |strings

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-06-06 09:42:36 UTC ---
The issue already occurs for
  read(20, fmt=*) s1
i.e. the list-directed read of a single character variable. In this case,
read_character should only read "abcd" - and eat the white space, before the
whole line is eaten.

It works with GCC 4.6.0 (trunk) 2010-09-28-r164677. While it fails with 4.7
2011-05-10 and 2011-06-06 -- and "4.6.0 20110523 [gcc-4_6-branch revision
174058] (SUSE Linux)".

(For testing: Ensure that the correct libgfortran version is used.)

I could not find anything very promising in the changelog, maybe Rev. 170239
(2011-02-16) for bug 47567 comment 15, or Rev. 168502 (2011-01-04) for PR 47154
look very vaguely related.


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