This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 ...)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]