>>106558919
>i want the compiler to insert checks before every read to ensure i'm not reading at address zero
okay but what if you're in an embedded system where reading/writing to address zero is perfectly valid? also nullptrs aren't the only place you're not allowed to read from. if you're writing a normal usermode process, chances are you're limited to only your program's memory. should the compiler insert virtual memory access queries in front of every read too then? wouldn't want to segfault, right?
>inb4 add a compiler option for it then
or you could just learn to write code like a White person