Unfortunately such pointer operations are considered to have undefined behavior and the compiler is free to take whatever actions it thinks more appropriate.
I saw other such cases during startup when the compiler used float instructions before having the chance for the FPU to be initialised, also resulting in crashes.
Unfortunately such pointer operations are considered to have undefined behavior and the compiler is free to take whatever actions it thinks more appropriate.
I saw other such cases during startup when the compiler used float instructions before having the chance for the FPU to be initialised, also resulting in crashes.