"When I point a pistol at my foot and pull the trigger, a hole appears and it hurts."
The language specification doesn't cover doing stupid things, so the processor may do anything when you do them. If you want array bounds checking, turn them on with the compiler switch. This will slow processing down, but enables you to catch the problems. When the program works, you can turn off array bounds processing (among other options).