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: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 09:03:37 -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 #6 from pault at gcc dot gnu dot org 2008-01-22 09:03 -------
(In reply to comment #5)
> Changing summary to better reflect what is wrong.
Jerry,
Jerry,
I believe this to be something missing in the library.
Other compilers (G95 and DEC are what I can lay hands on right now), as far as
I can see, interpret the io array references as being zero length.
I think that transfer_array is, mostly, doing the right thing. If I add
WRITE (48,IOSTAT = ISTAT, REC = 12) BDA1(3:4)
or to any other record >10, the testcase works correctly. Thus, rather than
just returning, with a zero length array, transfer_array has to write a zero
length record if the current record is > the number of record in the file.
I am completely lost in the library these days, whereas you are king:) Can you
have another look?
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34876