Oddbean new post about | logout
 @Dire Sock :verified: @pistolero II'm not gonna but lie checking for integer overflow using if(x+100 < x) is also really fucking dumb and nobody should do this ever.

But the compiler just ignoring it is even funnier. 
 @p @diresock @SuperDicq compiler should not think for programmer. it compiles your code to binary. that's all.
generally speaking, nobody can prevent you from shooting your foot, if you want. that's fine. nothing is prohibited, you can use overflow if this is your intention.
I don't understand people that think that compiler should look for their bugs, by some weird reason.