[pe.cust.bugs] bug in C compiler - accepts address of a register

dave@lsuc.UUCP (David Sherman) (04/24/85)

I write the following code (by accident):

	register time_t now;
	...
	time(&now);

and the C compiler accepted it. The register, not surprisingly,
didn't get its value set. The compiler should have rejected this
attempt to take the address of a register.

Dave Sherman
The Law Society of Upper Canada
-- 
{  ihnp4!utzoo  pesnta  utcs  hcr  decvax!utcsri  }  !lsuc!dave