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/16336] ICE with common block in module


------- 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


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