https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118763
--- Comment #1 from Valentin Tolmer <valentin at tolmer dot fr> --- Potentially related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113579 Though in this case, I'm pretty sure according to the docs, it's not undefined behavior.