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/44934] [4.6 Regression] Bogus "Missing format for FORMATTED data transfer"



------- Comment #8 from jvdelisle at gcc dot gnu dot org  2010-07-15 03:32 -------
Created an attachment (id=21206)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21206&action=view)
Fix for this regression.

Tobias said:
Another question is why is the file marked as FORMATTED? "READ (unit)" should
be unformatted, shouldn't it? And the file has not been explicitly opened for
formatted I/O. Or have I missed some I/O fine print?

Attached patch fixes this.  I assumed "unspecified" would be correct.  It is
not.  The patch cleans up whitespace in transfer.c, ignore that.  The bug is in
file_pos.c.  Also, I botched endfile_2.f90 which was trying to tell me we had a
regression.

Thanks Dominique for reporting the problem.  Regression tests ok. I will commit
shortly.


-- 


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


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