This is the mail archive of the gcc-patches@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]

Re: [Patch, fortran] PR24409 - ICE on module name vs dummy argumentname


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


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