Article View: net.lang.f77
Article #223"or()" bug in f77 (4.2bsd)
From: Col. G. L. Sicherman
Date: Sat, 06 Jul 1985 16:15
Date: Sat, 06 Jul 1985 16:15
25 lines
1063 bytes
1063 bytes
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
Technical Details
Message-ID:
<897@gloria.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!rocksanne!sunybcs!gloria!colonelShow 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/5/84; site gloria.UUCP Path: arc1-ca.pugleaf.net!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