This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34876] Can't read/write array sections with negative stride not specified
- 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: 24 Jan 2008 05:15:43 -0000
- Subject: [Bug fortran/34876] Can't read/write array sections with negative stride not specified
- References: <bug-34876-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from jvdelisle at gcc dot gnu dot org 2008-01-24 05:15 -------
Answering your question. Putting the write in front of the failing one causes
seeking to that record, writing it out and flushing the buffers. Writing
"grows" the file. This creates "undefined" records from the beginning of the
file up to the record written. With that the file actually has content and a
length. (Hard to read record 10 on a file with length zero)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34876