Re: signal(SIGFPE,SIG_IGN) causes endless loop

Kai Henningsen (kai@khms.westfalen.de)
01 May 1996 19:27:00 +0200


alan@cymru.net (Alan Cox) wrote on 23.04.96 in <199604231443.PAA30155@snowcrash.cymru.net>:

> Then the SCO system is not a C compiler. Thats a compiler bug. X/0 is legal
> C. Remind me to use an FPU trap to run something gratuitously so SCO users
> cant build it.

That's an interesting definition of "legal".

ANSI C says that the behaviour is undefined. "Permissible undefined
behaviour ranges ... to terminating a translation or execution (with the
issuance of a diagnostic message)."

I'd say you're wrong.

MfG Kai