Hacker News new | ask | show | jobs
by fsmv 425 days ago
I think you're confusing unspecified and undefined behavior. UB could do something randomly different every time and unspecified must chose an option.

In a lot of cases in optimizing compilers they just assume UB doesn't exist. Yes technically the compiler does do something but there's still a big difference between the two.

1 comments

Thanks, you’re right, I was mistaken.