Namelist IOSTAT behaviour

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Jun 11 16:55:00 GMT 2005


On Sat, Jun 11, 2005 at 05:02:50PM +0100, Paul Thomas wrote:
> > Please submit a bug report and I will endeavour to fix
> > it as soon as I can.
> 
> Hah! Easier said than done. The namelist is being correctly recorded in the
> .mod file and the objects in it are correctly associated.  However, the
> namelist structure is not being regenerated by the use statement.
> 
> I have found, easily enough, where the use statement is resolved but cannot
> see what happens after that. Where do the module variables get added to the
> symbol table and where best should namelists be reconstituted?
> 

You have stumbled into one of the darkest corners of gfortran.
Our implementation of modules is almost completely undocumented
and the code leaves much to desire.  I spent a week or so
looking at a problem with "USE, only : a => z, b => z" where
the "b => z" causes an ICE because the "a => z" removes z from
the symbols in the module.  I also tried to understand the 
problem with EQUIVALENCE in modules.  I gave up. ;-(

-- 
Steve



More information about the Fortran mailing list