Hacker News new | ask | show | jobs
by wilun 2965 days ago
You can not expect any consistency with UB.
2 comments

I don't disagree, and I'm not sure what about my comment would suggest that I expect consistency there. What I was arguing was that any code relying on UB is dangerous / broken, so it's a good idea to surface any underlying code issues at all optimization levels by standardizing how it's handled.
Yes, but a more-consistent-with-UB compiler is better to use than a less-consistent-with-UB.