Namelist IOSTAT behaviour
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Jun 11 17:38:00 GMT 2005
On Sat, Jun 11, 2005 at 06:14:53PM +0100, Paul Thomas wrote:
> > You have stumbled into one of the darkest corners of gfortran.
>
> Oh....
>
> > the symbols in the module. I also tried to understand the
> > problem with EQUIVALENCE in modules. I gave up. ;-(
>
>
> At least you can help me with one thing; where does the compiler attempt to
> see if a module declaration contains required symbols?
I only attempted to understand the "USE, ONLY" construct.
There is a struct gfc_use_rename that is used in gfc_match_use()
to build a list of symbols as they are read. This is the
root of the problem with "USE, only : a => z, b => z". By the
time "b => z" is parsed, z has already been renamed to a and
so it no longer exists. I think you want to be around line 504
in module.c.
--
Steve
More information about the Fortran
mailing list