Re:C for All
by UncleMeat on Friday March 23, 2018 @04:47PM
(#16662501)
Implementation defined behavior does the same thing for a given implementation. The compiler can produce totally different code every time you compile a program with UB. It can even affect code that is totally unrelated to the UB.
[ Parent
| on HN ]
Re:C for All
by mattkrause on Friday March 23, 2018 @11:59PM
(#16664779)
I'm not sure I buy that second part.
Legalistically, I guess it could (the behavior isn't defined, after all), but typically the optimizer makes some valid-only-if-the-code-is deductions and things snowball from there....