https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107426
Mikael Morin <mikael at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> --- Created attachment 54641 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54641&action=edit 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.