News for hackers. Stuff that matters.
Re:Clang vs. Clang by layer8 on Saturday August 03, 2024 @05:55PM (#41149567)
I can tell you that this happens in Java as well, which doesn’t have undefined behavior. That’s just the nature of mutable state in combination with algorithms that only work while the state remains unmodified.
Re:Clang vs. Clang by umanwizard on Sunday August 04, 2024 @11:18PM (#41157883)
Okay, but that’s the point. This is UB in C/C++, but not in Java, illustrating the fact that C and C++ have an unusually large amount of UB compared to other languages.