https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117464
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You can place an compiler barrier after the update of the pointer though like so: ``` AllocatedMemBlocks[1].MemBlockPtr -= 10; asm("":::"memory"); ``` Which will "Fix" the issue but that is just workaround the overall aliasing violation you have.