This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30009] Unformatted reads exceeding storage units gives EOF instead of ERR
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2006 22:58:14 -0000
- Subject: [Bug libfortran/30009] Unformatted reads exceeding storage units gives EOF instead of ERR
- References: <bug-30009-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2006-11-28 22:58 -------
(In reply to comment #2)
> > The read should read "1" of the first record and then "2" and "3" of the
> > second record.
> I don't think so.
You are of cause right. I should have really read
> F 2003, 9.5.3.4.1 (Unformatted data transfer):
more carefully (I did twice and missed that part). The bug is really that if
one reads too much data END= and not ERR= is triggered.
A quick test with ifort shows that it outputs the message "input statement
requires too much data" if one removes ERR=.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.2.0 4.3.0 |4.1.0 4.2.0 4.3.0
Summary|Unformatted reads exceeding |Unformatted reads exceeding
|one record should use the |storage units gives EOF
|next record not give EOF |instead of ERR
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30009