Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site gloria.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!rocksanne!sunybcs!gloria!colonel
From: colonel@gloria.UUCP (Col. G. L. Sicherman)
Newsgroups: net.lang.f77
Subject: "or()" bug in f77 (4.2bsd)
Message-ID: <897@gloria.UUCP>
Date: Sat, 6-Jul-85 12:15:20 EDT
Article-I.D.: gloria.897
Posted: Sat Jul  6 12:15:20 1985
Date-Received: Mon, 8-Jul-85 05:32:39 EDT
Distribution: net
Organization: SUNY-Buffalo Computer Sci.
Lines: 25

Has anybody seen this one before?  Run this through f77 -O under 4.2bsd:

	implicit integer (a-z)
	common / people / one, four, two, eight, ten
	one = 1
	four = 4
	two = 2
	eight = 8
	five = or(one,four)
	a = 1
	b = 2
	c = 3
	d = 4
	e = 5
	f = 6
	ten = or(two,eight)
	print *, ten
	stop
	end

The answer will be "5".  Looks like trouble with common subexpressions
that aren't common.
-- 
Col. G. L. Sicherman
...{rocksvax|decvax}!sunybcs!colonel