Pathalogical divides
Jamie Lokier
egcs@tantalophile.demon.co.uk
Tue Sep 26 04:37:00 GMT 2000
Geoff Keating wrote:
> > Sure, except that the (largest_negtive_number % -1) *is* mathematically
> > defined: anything mod -1 is 0! It's the corresponding *division* that's
> > undefined, but that isn't what the programmer is requesting.
>
> I see! You are right. Yes, this is required to work.
And if it did work, GCC wouldn't crash when compiled with itself :-)
-- Jamie
More information about the Gcc
mailing list