|
|
|
|
|
by uecker
720 days ago
|
|
The poster is me. You are right that this is not an example for time-travel. There aren't really good examples for true time travel because compilers generally do not do this. But my point is that with compilers behaving like this, people might confuse this for time-traveling UB. I have certainly met some who did and the blog posts seems to have similar examples (but I haven't looked closely now). Note that I am a member of WG14. We added more clarification to C23 to make clear that this is not a valid interpretation of UB, see here:
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf |
|
The lack of clarity in earlier standards made it impossible to deal with code incrementally, since all the unknown execution paths could potentially breach back in time and smash your semantics.