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.