4 ms·
>You asked for a normal thing that is being done by a programmer that causes UB, and I think I gave a fair example. Not really. I asked for examples where the
by passivate 5y ago
>You asked for a normal thing that is being done by a programmer that causes UB, and I think I gave a fair example.
Not really. I asked for examples where the language takes the intention of the programmer and turns it into UB. The quote that I responded to "C++ compiler generates the most efficient thing that may or may not correlate with what you intended"
What is the intention of the programmer attempting to store an infinite number series in an int?
In any case, I think we've run of steam here so you have the last word if you'd like.