compiler error
should the following c++ code compile?
const int x = 0;
if ( x > 0 )
int y = 1000/x;
the microsoft c++ compiler chokes on a divide by zero error. it's kinda nice that it checks for things like 1000 divided by 0. but why is it trying to compile that block of code at all? the if will always fail so it should just skip the entire block. dumbass thing. yeah it's definitely a compiler error. and by that i mean an error in the compiler. sheehs.