I'm on Visual Studio 2019, and when I try to compile this:
#include <iostream>
int main() {
(-2147483647 - 1) / -1;
INT_MIN / -1;
}
I get a compiler error in both cases:
C2124 'divide or mod by zero'
There's no divide or mod by zero as far as I can see.