This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44934] [4.6 Regression] Bogus "Missing format for FORMATTED data transfer"
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2010 03:32:44 -0000
- Subject: [Bug fortran/44934] [4.6 Regression] Bogus "Missing format for FORMATTED data transfer"
- References: <bug-44934-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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