Hardware related VC++6 problem?

TripperJoe

Senior member
Mar 15, 2001
350
0
0
I've just installed VC++6 on a new P4 system (ASUS P4T-E mb), and I'm having an isolated obscure problem that I'm trying to prove is a problem with my hardware and not with VC++. I get this problem running win2k, XP, and Me.

The problem is that I get a compiler warning C2124 'divide or mod by zero' on a legit line of code:

int main()
{
double a = 1.0; // ok
double b = 2.0f; // ok
double c = a / b; // ok
double d = 1.0 / b; // ok
double e = 1.0 * 2.0; // ok
double f = 1.0 / 2.0; // Error C2124: divide or mod by zero

return 0;
}

I get the same problem with floats, but not ints.

Has anyone seen anything like this, or know of ways of proving that this is a problem with the CPU or mb?

Any help is greatly appreciated!