This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37129] Problems with access='direct', recl=1 I/O
- From: "huwaldtj at saic dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2008 16:58:57 -0000
- Subject: [Bug fortran/37129] Problems with access='direct', recl=1 I/O
- References: <bug-37129-16600@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from huwaldtj at saic dot com 2008-08-15 16:58 -------
(In reply to comment #1)
Is there a Fortran 77 compatible work-around that will do what this program was
doing (i.e.: write out a mixed set of 4 byte integers and 8 byte floats to a
binary file with a specific format since that file will be read by another
program that we do not control)?
Joe
> (In reply to comment #0)
>
> > It appears that gfortran does not interpret recl=1 the way many historic
> > compilers, including g77, did. So, this bug report is to request that recl=1
> > be interpreted to mean that the compiler should use the I/O list to determine
> > how many items to read or write as g77 apparently did.
>
> I suspect that gfortran intreprets recl=1 in your open statement
> according to the words of the Fortran Standard. If my reading
> of 9.4.5.12 is correct (which can be incorrect), then it appears
> the code is nonconforming Fortran and it is a bug in the code
> not gfortran.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37129