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