This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, gfortran] Fix for fortran PR/12701.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]