[Bug fortran/54224] [4.8 Regression] Bogus -Wunused-function warning with static function
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 19 17:49:00 GMT 2012
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.)
More information about the Gcc-bugs
mailing list