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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikael at gcc dot gnu.org

--- Comment #2 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 55524
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55524&action=edit
Draft patch

I haven't completely nailed it down, but it seems that the reason for this is
the obscure condition in gfc_release_symbol to break cycles.
It triggers on the symbol for g imported from the module.  The symbol has 2
references,
one for the submodule namespace holding it, one for subroutine namespace that
is being freed.

Reply via email to