This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16336] ICE with common block in module
- From: "schnetter at aei dot mpg dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2004 17:24:53 -0000
- Subject: [Bug fortran/16336] ICE with common block in module
- References: <20040702205932.16336.schnetter@aei.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schnetter at aei dot mpg dot de 2004-07-10 17:24 -------
Section 11.2.1, "The USE statement and use association" of the draft of the
Fortran 2003 standard (J3/04-007) says
"The USE statement provides the means by which a scoping unit accesses [...]"
and then gives a list of what is accessed. This list does not include common
block names (except if common blocks are "named data objects", which I do not
think). That means that a module should never export common block names.
The standard speaks later in the same section of "accessible entities". If
common blocks are not entities, then they should not become accessible.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16336