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

Reply via email to