https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106025
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> --- I can reproduce with gcc version 13.0.0 20220619 at -O2 on x86_64-pc-linux-gnu, but not with gcc version 12.1.1 20220618 or gcc-11. I tried -fsanitize=undefined to see if the code had any UB, but that was silent _and_ masked the problem.