🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.f77
Article #285

Minor I/O bug

#285
From: Donald R. Fredkin
Date: Fri, 20 Dec 1985 19:44
10 lines
1004 bytes
The f77 compiler complains of a syntax error at the first line of the
following program (4.2bsd on VAX, v2.0 on SUN):

	write(6,10) (-1)
10	format(i2)
	end

Removal of the parentheses around -1 cures the problem.  This seems to violate
section 12.8.2.2 of ANSI X3.9-1978, which states that an <output list item>
can be "(5) Any other expression ..."
Technical Details
Message-ID: <3117@sdcc3.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcc3!drf

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site sdcc3.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcc3!drf
From: drf@sdcc3.UUCP (Donald R. Fredkin)
Newsgroups: net.lang.f77
Subject: Minor I/O bug
Message-ID: <3117@sdcc3.UUCP>
Date: Fri, 20-Dec-85 14:44:56 EST
Article-I.D.: sdcc3.3117
Posted: Fri Dec 20 14:44:56 1985
Date-Received: Wed, 25-Dec-85 00:36:38 EST
Reply-To: drf@sdcc3.UUCP (Donald R. Fredkin)
Organization: U.C. San Diego, Academic Computer Center
Lines: 10