https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108770
qinzhao at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |qinzhao at gcc dot gnu.org --- Comment #2 from qinzhao at gcc dot gnu.org --- This is exactly the same issue as PR109071. I can repeat it with trunk GCC. adding -fno-thread-jumps makes the warning disappear. I think that the original code has a bug, and the -Warray-bounds diagnostic need improvement to provide more details why this is happening.