by mgaunard · 4y ago · 0 comments
C++ does not add runtime overhead to validate that programs are well-formed.
This is an example of something that cannot be anything other than UB.
You have succinctly described the problem.
If you want a language that is slow, there are plenty of options.