[9081] in Athena Bugs

home help back first fref pref prev next nref lref last post

DECstation cc 2.1

daemon@ATHENA.MIT.EDU (John Carr)
Thu Mar 12 20:01:05 1992

To: bugs@Athena.MIT.EDU
Date: Thu, 12 Mar 92 20:00:53 EST
From: John Carr <jfc@Athena.MIT.EDU>


cc 2.1 on the DECstation dumps core compiling this function:

	double du_dt (double u0, double v0)
	{
	  return ((-1/(2*0.056))(1*0.00015*8*u0*sqrt(u0*u0+v0*v0)));
	}

There is a bug in the source code: the argument to return parses as

	(floating point value)(floating point value)

which looks like a function call, but a floating point value is not a
function pointer so this is illegal.

The compiler shouldn't dump core even though the input has an error.


home help back first fref pref prev next nref lref last post