Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Falsehoods programmers believe about undefined behavior. Parent comment
My first answer was going to be that the transformation is not allowed, but then I thought about it more.
I couldn't get gcc to break it either though. Either it misses the optimization or tries to be conservative with reordering UB with side effects.
There are no comments on this comment yet.
My first answer was going to be that the transformation is not allowed, but then I thought about it more.
I couldn't get gcc to break it either though. Either it misses the optimization or tries to be conservative with reordering UB with side effects.