conrad@cgl.ucsf.edu.UUCP (10/02/87)
One of our users ran into a problem with f77 on 4.3BSD and I was wondering
whether anyone has a fix for it. The following program is fairly simple:
character x*10,y*10
x = 'hello'
y = 'hellp'
i = 1
if (x(i:i).eq.y(1:1) .and. x(i*2:i*2).ne.y(2:2)) then
write(6,10) 'help'
10 format(' ', a4)
endif
stop
end
There should be no output since
x(i:i) = 'h'
y(1:1) = 'h'
x(i*2:i*2) = 'e'
y(2:2) = 'e'
but if you compile and run it, it says "help". Any pointers to fixes is
greatly appreciated. Thanks in advance,
Conradconrad@cgl.ucsf.edu.UUCP (10/02/87)
Ooops. My last article should also have stated that we're running on Vaxen. This bug does not appear on CCI machines. Conrad