[net.unix-wizards] bug in f77 reading complex numbers

smk@Mitre-Bedford@sri-unix (11/23/82)

Date: Sat Nov 20 21:03:19 1982
Our (4.1bsd) f77 programs that read in complex numbers from the terminal
skip every other number.  The simple program:

	program disaster
	complex a,b
	read (5,*) a
	write (6,*) a
	read (5,*) b
	write (6,*) b
	end

gives an end of file error for the input:

 (  1.20000005,  9.29999995)
 (  2.20000005,  3.29999995)

and gives the output:

 (  1.20000005,  9.29999995)
 (  2.20000005,  3.29999995)

for the input:

 (  1.20000005,  9.29999995)
 (  6.20000005,  2.29999995)
 (  2.20000005,  3.29999995)

Does anyone have a fix or an explanation for this?
BTW -- the same response occurs if the numbers are not separated by newlines.

	--steve