https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103931

--- Comment #13 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> ---
(In reply to anlauf from comment #12)

> Consider the original testcase.  Module CModule has no public symbols.
> Technically, the "use CModule" in module DModule should not have any effect.
> (Confirmed by other brands).  However, commenting the "use CModule"
> reproduces
> the original error message.

Ok, i see. Thanks for the enlightenment :)

First and foremost, re-instating the class finalization memory leak cited in
comment #8 does not help, as expected.
At first i thought that we might look in the wrong namespace, but that does not
seem the case.

I'm testing a patch.

> 
> This PR may be a duplicate of others that describe gfortran's confusion
> when using (intrinsic) modules along a module chain like here.

There are 50 bugs with "module" in the description, i should go through them to
see if there are similar cases. Or do you by chance remember a specific one in
that area?

Reply via email to