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/52751] New: private module variable are not exported as local


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

             Bug #: 52751
           Summary: private module variable are not exported as local
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arnaud02@users.sourceforge.net


>cat  qq.f
      module mm
      integer, private :: i
      end module
>gfortran470 -c qq.f
>nm qq.o
0000000000000000 B __mm_MOD_i

>cat qq.c
static int i;
>gcc470 -c qq.c
>nm qq.o
0000000000000000 b i

Variables private to a module could be marked as local ("b" instead of "B") in
the same way that "static" variables are in C. 

This is related to PR40973, which is about procedures.


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