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: unassig...@gcc.gnu.org
        ReportedBy: ja...@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.

Reply via email to