problem in f77 (4.2BSD)
Thomas R. Quinn
trq at astrovax.UUCP
Mon Mar 19 06:45:25 AEST 1984
I have sent the following bug report to berkely:
Subject: problem with parameters in f77
Index: usr.bin/f77 4.2BSD
Description:
Assigning an integer to the sum of an integer and "0" times "iparam"
where the value of "iparam" is defined in a parameter statement results
in the integer being assigned the value "0".
Repeat-By:
Compile and run the following program under f77.
parameter(IRED = 256)
iwrblk = 10 + 0*IRED
print *,iwrblk
end
The program will print "0" instead of the correct value "10". Note
that the statement
print *, 10 + 0*IRED
will print the correct value.
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list