4 ms·
This is a great example. There's an obvious UB, the compiler sees it at compile time and should just stop the programmer from doing the mistake at all times.
by vkazanov 3y ago
This is a great example.
There's an obvious UB, the compiler sees it at compile time and should just stop the programmer from doing the mistake at all times.
Instead, it's totally possible to just let the programmer tear his leg off for no clear reason.