This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/52669] New: No warning in unused private variable in modules


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52669

             Bug #: 52669
           Summary: No warning in unused private variable in modules
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arnaud02@users.sourceforge.net


>cat qq2.f
      module mm
      private
      integer :: a, b, c
      public :: aa1, aa2
      contains
      subroutine aa1
      a = 1
      end subroutine aa1
      subroutine aa2
      b = 1
      end subroutine aa2
      end module mm
>/usr/local/gcc/gfortran470 -Wall -c qq2.f
>/usr/local/gcc/gfortran470 --version | head -2
GNU Fortran (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.

gfortran has not detected that private variable "c" is unused. Private module
variables that are not referenced within their module are unused.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]