3 ms·
It is not nonsense: see https://lwn.net/Articles/575563/ https://lwn.net/Articles/575563/ Compilers are allowed to assume undefined behavior doesn't happen, an
by quotemstr 1y ago
It is not nonsense: see https://lwn.net/Articles/575563/ https://lwn.net/Articles/575563/
Compilers are allowed to assume undefined behavior doesn't happen, and dereferencing an invalid pointer is undefined behavior. You don't have to like it, but that's how it is.