https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107677
--- Comment #5 from Carlos Galvez <carlosgalvezp at gmail dot com> --- Wow, that was mind blowing, thanks for the clarification! Such thing I'd like to have in the docs, it's very easy to confuse with the other message: note: at offset 48 into object '<anonymous>' of size 48 So one offset is an actual index, and the other is a "mathematical range of indices". Back to my example: error: array subscript [-536870912, -1] is outside array bounds I don't see these numbers in my code. Therefore I wonder: how does GCC compute these numbers? Are they based on my code, or are they based on: "if the user pass you the number -536870912 as input at runtime, then you'll do out-of-bounds"?