
14 Nov
2013
14 Nov
'13
8:29 p.m.
On 14 Nov 2013 at 7:01, Steven Watanabe wrote:
No, it is not harmless. You cannot safely assume that undefined behavior is ever harmless, just because you can't think of anything that can go wrong. In particular, the compiler is free to make assumptions that can cause your code to miscompile with optimizations on.
For the purposes of my peer review report, can you say if you know of any misoperation which any major compiler might do in this circumstance? Niall -- Currently unemployed and looking for work. Work Portfolio: http://careers.stackoverflow.com/nialldouglas/