https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71657 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- I'm not very motivated to debug this "code", please make sure you try the options suggested at https://gcc.gnu.org/bugs/ to be sure the sanitizers don't find a problem.