[Patch, fortran] PR24409 - ICE on module name vs dummy argument name

Paul Thomas paulthomas2@wanadoo.fr
Mon Nov 7 21:10:00 GMT 2005


Tobi,

>How does this name clash come about?  The two symbols should be living in
>different namespace.
>  
>
It comes about when nested modules use the same use associated symbol at 
module level and in a contained function.  The ICE came about in the 
original PR because some of the references would stick to the contained 
version.  This trick promotes those references up to share a common 
symbol in the parent namespace.

Specifically difficult are derived type specifications that are used to 
type formal arguments of a contained function; the original PR.

In short then, you are right but this particular case blurs the 
distinction a bit, from the practical point of view.

Paul



More information about the Fortran mailing list