https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112929
--- Comment #17 from Patrick O'Neill <patrick at rivosinc dot com> --- I also tried making m an array and printing every element to try to detect the overwriting that way. Once m gets too large (~10 elements) the issue disappears.