🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pe.cust.bugs
Article #24

bug in C compiler - accepts address of a register

#24
From: David Sherman
Date: Wed, 24 Apr 1985 17:41
14 lines
876 bytes
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
Technical Details
Message-ID: <620@lsuc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!lsuc!dave

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!lsuc!dave
From: dave@lsuc.UUCP (David Sherman)
Newsgroups: pe.cust.bugs
Subject: bug in C compiler - accepts address of a register
Message-ID: <620@lsuc.UUCP>
Date: Wed, 24-Apr-85 12:41:16 EST
Article-I.D.: lsuc.620
Posted: Wed Apr 24 12:41:16 1985
Date-Received: Wed, 24-Apr-85 13:12:10 EST
Organization: Law Society of Upper Canada, Toronto
Lines: 14