[Bug fortran/107426] [12/13 Regression] ICE in gfc_compare_derived_types, at fortran/interface.cc:636

mikael at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 12 16:45:01 GMT 2023


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

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

(In reply to Mikael Morin from comment #3)
> Created attachment 54641 [details]
> Draft patch
> 
> I couldn't track the exact path of the memory error reported by valgrind,
> but the attached patch "fixes" (well, it makes it latent I guess) the
> problem by removing from the use statement list the statements that are
> rejected.

There is a bug in it: new use statements are at the end of the linked list, not
at the beginning.


More information about the Gcc-bugs mailing list