[Bug fortran/54270] New: [4.8 Regression] spurious warning with -Wunused-function
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 15 12:00:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54270
Bug #: 54270
Summary: [4.8 Regression] spurious warning with
-Wunused-function
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: janus@gcc.gnu.org
Considering the following test case:
module m
private
public :: t
contains
subroutine s
end subroutine
subroutine t
call s
end subroutine
end module
Compiling this with Wall, I recently get the warning:
warning: ‘s’ defined but not used [-Wunused-function]
This is certainly fake, since s is obviously used. First observed at r190398.
More information about the Gcc-bugs
mailing list