public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54270] New: [4.8 Regression] spurious warning with -Wunused-function
@ 2012-08-15 12:00 janus at gcc dot gnu.org
  2012-08-15 12:38 ` [Bug fortran/54270] " burnus at gcc dot gnu.org
  2012-08-15 12:44 ` burnus at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: janus at gcc dot gnu.org @ 2012-08-15 12:00 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-15 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-15 12:00 [Bug fortran/54270] New: [4.8 Regression] spurious warning with -Wunused-function janus at gcc dot gnu.org
2012-08-15 12:38 ` [Bug fortran/54270] " burnus at gcc dot gnu.org
2012-08-15 12:44 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).