[Bug fortran/54224] Warn for unused (private) module variables and internal procedures

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 19 17:54:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54224

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.8 Regression] Bogus      |Warn for unused (private)
                   |-Wunused-function warning   |module variables and
                   |with static function        |internal procedures

--- Comment #14 from janus at gcc dot gnu.org 2012-10-19 17:54:24 UTC ---
(In reply to comment #12)
>  * unused-warnings for module variables

Test case:


module m
 integer :: j
 integer, private :: k
end module

program test
  integer :: i
end


With -Wunused-variable, gfortran warns for i, but should also warn for k (not
for j).

(adjusting title for leftover issues ...)



More information about the Gcc-bugs mailing list