Hacker News new | ask | show | jobs
by Gibbon1 1377 days ago
> C compilers do not hunt for possible occurrences of undefined behavior so they can gleefully get rid of lines of code.

Yes they do, if they detect UB they consider the result poisoned and delete any code that depends on it.