https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102111
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-09-06 Keywords| |wrong-code --- Comment #3 from anlauf at gcc dot gnu.org --- I get a memory corruption on x86_64-pc-linux-gnu when adding a print as in comment#1. valgrind complains about: Invalid free() / delete / delete[] / realloc() So I guess it is not (fully) fixed yet.