Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site astrovax.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!ihnp4!astrovax!trq
From: trq@astrovax.UUCP (Thomas R. Quinn)
Newsgroups: net.lang.f77,net.bugs.4bsd
Subject: problem in f77 (4.2BSD)
Message-ID: <242@astrovax.UUCP>
Date: Sun, 18-Mar-84 15:45:25 EST
Article-I.D.: astrovax.242
Posted: Sun Mar 18 15:45:25 1984
Date-Received: Mon, 19-Mar-84 08:12:27 EST
Organization: Princeton Univ. Astrophysics
Lines: 22

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.