[Bug fortran/17918] gfortran .mod files have unusual entries about private common blocks
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 10 19:05:00 GMT 2004
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-10 19:05 -------
This is intended behavior. PRIVATE has no meaning for common blocks, please
review the discussion accompanying the previous bug you're referring too. There
is no such thing as "private common blocks". Common blocks are guides on how to
layout memory. Say, if you have
module m
common /s/ x, y
private x
end module
use m
common /s/ a, b
y = 2.
print *,b
end
This program should print "2.0000". This is why we need the information about x
being in the common block in the main program. (I'm not completely sure if
symbols which are in a common may be public, and I will verify this, but you get
the point).
While investigating your bug, I did find other problems with common blocks in
modules, and I will add PRs for these. Maybe one of them is the actual bug
you're hitting.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17918
More information about the Gcc-bugs
mailing list