3 ms·
It would seem GCC is doing its very best to make C an irrelevant language. They're taking "-pedantic" a bit too seriously.
by tgv 4y ago
It would seem GCC is doing its very best to make C an irrelevant language. They're taking "-pedantic" a bit too seriously.
- mort96 4y agoAll optimizing compilers do stuff like this. You yourself ask the compiler to do it when you pass it '-O2'. Its default behavior is, in fact, to not optimize based on the assumption that UB won't happen.