Comment by saagarjha Comment by saagarjha 10 hours ago 1 reply Copy Link View on Hacker News That share is a vanishingly small fraction of cases.
Copy Link uecker 7 hours ago Collapse Comment - I am not sure. I saw quite a few of these bugs where programmers were told it is UB but it isn't.For example, people showed me extern void g(int x); int f(int a, int b) { g(b ? 42 : 43); return a / b; } as an example on how compilers exploit "time-travelling" UB to optimize code, but it is just a compiler bug that got fixed once I reported it:https://developercommunity.visualstudio.com/t/Invalid-optimi...Other compilers have similar issues. Reply View | 0 replies
I am not sure. I saw quite a few of these bugs where programmers were told it is UB but it isn't.
For example, people showed me
as an example on how compilers exploit "time-travelling" UB to optimize code, but it is just a compiler bug that got fixed once I reported it:https://developercommunity.visualstudio.com/t/Invalid-optimi...
Other compilers have similar issues.