[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 20 10:27:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |---
--- Comment #15 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Jerry DeLisle from comment #12)
> Remaining [...] is to warn on an unused namelist. I think this will involve
> marking namelists as used when resolving or translating I/O statements and
> then at some point, scan for any namelists not marked.
I think the later scanning can be done when generating the DWARF debug symbols
(cf. PR37132) in trans-decl.c. While not very important, I find such a warning
useful. (One needs to be careful about those declared in a module or accessed
via host association. Fortunately, namelists may not be declared in a BLOCK.)
More information about the Gcc-bugs
mailing list