3 ms·
There is good reasons compilers don't warn about most undefined behavior: there is so much might be but really isn't undefined behavior in the world. I often w
by bluGill 7y ago
There is good reasons compilers don't warn about most undefined behavior: there is so much might be but really isn't undefined behavior in the world.
I often write code that won't divide by zero, something I can prove because I know my whole program while the compiler only knows the file/library it is working with at the moment. As such I didn't put in a if divisor is zero check, and now want the compiler to waste my time on a warning that is wrong.