This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54224] [4.8 Regression] Bogus -Wunused-function warning with static function
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Oct 2012 17:48:50 +0000
- Subject: [Bug fortran/54224] [4.8 Regression] Bogus -Wunused-function warning with static function
- Auto-submitted: auto-generated
- References: <bug-54224-4@http.gcc.gnu.org/bugzilla/>
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.)