https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129286
--- Comment #2 from Alexey.Shinkin at Honeywell dot com --- (In reply to Drea Pinski from comment #1) > Your conditions are swapped so you get undefined behavior when i is > MAX_ITEMS with an out of bounds access. Got it, thanks. Tricky though, no compiler warnings, works with -O1. But yeah, that is what UB is ...
