When you have done enough C++ you don't need to fire up compiler explorer, you just use local variables to avoid aliasing pessimisations.
I also wrote about this a while ago: https://forwardscattering.org/post/51
I also wrote about this a while ago: https://forwardscattering.org/post/51