> Before I file a bug report I wanted to check to see if my expectations > are wrong or if this is a compiler bug. Is there anything that allows > the compiler to generate instructions that would read beyond the end > of an array potentially causing a crash if the page isn't accessible?
It's PR middle-end/36043 in GCC's bugzilla. -- Eric Botcazou