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

--- Comment #12 from anlauf at gcc dot gnu.org ---
(In reply to Bernhard Reutner-Fischer from comment #11)
> Both the original testcase as well as the reduced testcase from comment #2
> compile fine for me with trunk from earlier today at r13-6974-g802ab7d0db5b5a

The behavior of gfortran is very fragile.

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.

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

Reply via email to