https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367
--- Comment #2 from Alexandre Ganea <alexandre.ganea at ubisoft dot com> --- Slighly modified version with zero-init variables still shows the warning: https://godbolt.org/z/Mht3uF Andrew: you say "I think you reduced it too much". I simply used "gcc file.cpp -O3 -Warray-bounds | grep -i '\-Warray-bounds'" as an interestingness test. Would you suggest something else, I could try it again?