Hacker News new | ask | show | jobs
by Dr_Emann 2019 days ago
Because there is no UB in the original program.

It constructs a pointer to the "one past the end" element, but that is fine, and the original program never dereferences that pointer. Again: there is no UB in the original program.

1 comments

There's clearly potential for pointer aliasing in the program, isn't that UB?