------- Comment #22 from burnus at gcc dot gnu dot org  2006-12-03 22:07 -------
And here is the relevant part of the standard Fortran 2003, Section 11.2.1
("USE") [cf. also F95, Sec 11.3.2]:

"Two or more accessible entities, other than generic interfaces or defined 
operators, may have the same identifier only if the identifier is not used to
refer to an entity in the scoping unit. Generic interfaces and defined
operators are handled as described in section 16.2.3. Except for these cases,
the local identifier of any entity given accessibility by a USE statement shall
differ from the local identifiers of all other entities accessible to the
scoping unit through USE statements and otherwise."

I don't see it right way, but Richard Main claims that alreay using 
   use module1, only: ambiguous_symbol
   use module2
is enough to make it invalid (this is not even detected by ifort).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975

Reply via email to