bad floating point exception

Mike - EMAIL IGNORED m_d_berger_1900 at yahoo.com
Fri Jul 27 18:26:39 UTC 2007


On FC4, with:
$ g++ --version
g++ (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)

I ran, in essence:

   unsigned    x = <seconds in the epoch>;
   unsigned    y = 0; // an error
   if (x % y == 0)
      ...

I got a floating point exception.  Peculiar?

Mike.





More information about the fedora-list mailing list