[mod.computers.pyramid] cc bug?

ken@ROCHESTER.ARPA (Ipse dixit) (02/04/86)

cc doesn't complain about the following piece of code:

foo(a, b, b)
	int	a, b;
{
	a = b;
}

I'm only a user so I have no idea of the exact version of OSx. I know
it was upgraded not two weeks ago.

	Ken

cs111olg@LOCUS.UCLA.EDU (Oleg Kiselev) (02/05/86)

Well, when you do not declare the type cc could be assuming it's an int...
But it SHOULD say something about a re-declaration if a formal parameter

Send a message to Pyramid???

-- 
DISCLAMER: The opinions expressed above do not necessarily reflect those of UCLA
or it's emloyees and faculty. The might not even  be mine for all I know...
+---------------------------------------+---------------------------------------
| "VIOLATORS WILL BE TOAD !" 		|From the steam tunnels of UCLA
|		The Dungeon Police	|	 Oleg Kiselev, the student again
+---------------------------------------+ ...{ WORLD }!ucla-cs!cs111olg