Compiler bug or gray area in C?

Joe Porkka jap at convex.cl.msu.edu
Fri Nov 30 01:35:54 AEST 1990


daveb at ingres.com (When a problem comes along . . . you must whip it) writes:

>Given this simplification:
>	
>	extern	double D, foo();
>	
>	foo( i )
>	int i;
>	{
>		double	x;
>		int	changes = 0;
>		do {
>	
>			x = foo( i );

Ooops, the recursion starts but but does not stop.
You recurse BEFORE you do anything that could stop it, like an if.



More information about the Comp.lang.c mailing list