This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52751] New: private module variable are not exported as local
- From: "arnaud02 at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Mar 2012 10:21:23 +0000
- Subject: [Bug fortran/52751] New: private module variable are not exported as local
- Auto-submitted: auto-generated
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.