[PATCH] Thread-safe libgfortran (PRs fortran/14943 and fortran/21647)

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Nov 23 06:14:00 GMT 2005


On Wed, Nov 23, 2005 at 04:39:50PM +1030, Alan Modra wrote:
> On Wed, Nov 23, 2005 at 04:18:42PM +1030, Alan Modra wrote:
> > On Wed, Nov 23, 2005 at 12:20:17AM -0500, David Edelsohn wrote:
> > > gfortran.dg/dev_null.f90
> > > gfortran.dg/write_to_null.f90
> > > 
> > > are failing with a "File already opened in another unit" error.  This
> [snip]
> > >   if (u2 != NULL
> > >       && (options.stdin_unit < 0 || u->unit_number != options.stdin_unit)
> > >       && (options.stdout_unit < 0 || u->unit_number != options.stdout_unit)
> > >       && (options.stderr_unit < 0 || u->unit_number != options.stderr_unit))
> > 
> > I think that ought to be u2->unit_number rather than u->unit_number.
> > Testing...
> 
> Yes, that cured it.  OK to apply?
> 

Is this an AIX specific problem?  I won't have time
until tomorrow (10 hours from now) to investigate.

-- 
Steve



More information about the Fortran mailing list