[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 9 00:24:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|jvdelisle at gcc dot |unassigned at gcc dot
|gnu.org |gnu.org
--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2010-11-09 00:24:02 UTC ---
This latest patch gets rid of the bogus unused warning. Remaining, but not
real important 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 almost think its not worth
it, but will leave this opened until others weigh in on it.
Even if a namelist is used, a particular variable within it may not be used.
For example, if the users nml file does not contain an assignment for a
particular variable in the list, it will remain unused. No value in the read
operation.
More information about the Gcc-bugs
mailing list