C
Undefined behaviour
The compiler is allowed to do anything at all. What that means for code that works today and stops working at -O2.
We have not written this one up yet, and it would be easy to pretend otherwise.
Or sit with someone on it instead of waiting for us to write it.