Comment on The strict aliasing situation is pretty bad (2016)parentComments−lmm1yCan the C compiler really optimize foo to always return 0?YesThat seems extremely unintuitive to me.C compilers are extremely unintuitive. This is a relatively sane case, they do things that are much more surprising than this.
Comments
Yes
C compilers are extremely unintuitive. This is a relatively sane case, they do things that are much more surprising than this.