Parameters with storage class typedef

tallman at dspo.UUCP tallman at dspo.UUCP
Thu Jul 12 09:55:02 AEST 1984


The portable C compiler appears to allow a storage class of typedef on
function parameters, e.g. :

	f(x) typedef int x;
	{
		x c;

		c = 20;
	}

This gives no error in cc or lint. Of course, x cannot be used in
expressions within the function. This must be a bug, since K+R says
that the only storage class allowed on a parameter is register.
-- 
Dave Tallman - ucbvax!lbl-csam!lanl-a!dspo!tallman or dspo!tallman at LANL
Los Alamos National Labs - Data Systems Project Office (DSPO)
Los Alamos, New Mexico  -  (505) 667-8495



More information about the Comp.lang.c mailing list