Hacker News new | ask | show | jobs
by krackers 688 days ago
>so it doesn't really matter if it is optimized away.

There are cases in which the optimization can result in behavior other than segfaulting, see https://research.swtch.com/ub#null

1 comments

Sure. That's why I said "the behavior you would probably expect", but that isn't necessarily what happens.