Re: PR37132 – RFC patch for generation of DWARF symbol for Fortran's namelists (DW_TAG_namelist)
Cary Coutant
ccoutant@google.com
Tue Nov 12 18:26:00 GMT 2013
> One cannot simply also import, e.g., "i" as the code might have:
>
> subroutine example()
> use mod, only: my_nml
> integer :: i ! < Locally defined variable
> read(uid, my_nml)
> ...
> end subroutine example
>
> In that case "i" is the local variable. As written, one can create a decl
> and a die for the "i" of the module, but the question is how to name it.
Ah, sorry, I didn't understand how the use statement works with a
namelist. I thought that when you import a namelist, it imports all
the names in that namelist individually, and that the read(...,
my_nml) was equivalent to read(..., ii, rr).
This sounds like a good question for the DWARF workgroup. Could you
forward this thread to dwarf-discuss@lists.dwarfstd.org? We have some
Fortran experts on that list, but I'm not one of them.
-cary
More information about the Fortran
mailing list