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] [4.8 Regression] Bogus -Wunused-function warning with static function


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

--- Comment #13 from janus at gcc dot gnu.org 2012-10-19 17:48:50 UTC ---
(In reply to comment #12)
> Leftover things to check/fix:
>  * unused-warnings for internal procedues

Test case:

module m
private
contains
 subroutine s1
 contains
   subroutine s2
   end subroutine
 end subroutine
end module

program test
contains
  subroutine s3
  end subroutine
end


With -Wunused-function, gfortran currently only warns for s1, but not for s2
and s3. (With 4.7, no warning is thrown at all.)


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