This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, gfortran] Fix for fortran PR/12701.
- From: Paul Brook <paul at nowt dot org>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>, gcc-patches at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org
- Date: Sun, 26 Oct 2003 22:34:58 +0000
- Subject: Re: [PATCH, gfortran] Fix for fortran PR/12701.
- References: <3F997A14.2030409@moene.indiv.nluug.nl>
On Friday 24 October 2003 8:14 pm, Toon Moene wrote:
> The attached patch fixes fortran PR/12701 with no regressions.
I suspect you're forgetting to free the memory you allocate to hole the
filename (not a major issue). Other than that it's ok.
Interestingly, it looks like this is actually illegal. From section 9.3.4.1:
"If this [FILE=] specifier is ommitted and the unit is not connected to a
file, the STATUS= specifier shall be specified with a value of SCRATCH;"
The g77 manual also says something similar.
However there seems to be precedent for the behaviour you describe (both g77
and the Intel compiler). I guess we may as well make it work.
Paul