This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20257] Fortran runtime error: End of record occurs when writing large arrays
- From: "coudert at clipper dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2005 09:34:53 -0000
- Subject: [Bug libfortran/20257] Fortran runtime error: End of record occurs when writing large arrays
- References: <20050301025021.20257.kamaraju@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From coudert at clipper dot ens dot fr 2005-03-02 09:34 -------
It happens for all kind of output (formatted (direct or sequential) or
unformatted), and is due to gfortran setting an arbitrary maximal length of
10000 chars (this is in current_unit->recl). Since this code doesn't specify a
recl, we use the default:
io.h:#define DEFAULT_RECL 10000
I don't see a reason for setting so low a value. I will ask later today on the
gfortran mailing-list about the reasons behind this choice. Hope we can fix this
quickly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20257