[1988] in Athena Bugs
hf77 compiler, release 6.1C
daemon@ATHENA.MIT.EDU (ellis@ATHENA.MIT.EDU)
Tue Mar 28 08:42:11 1989
From: <ellis@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Date: Tue, 28 Mar 89 08:41:53 EST
The hf77 compiler has a problem doing default output of
double complex type. The following program and results shows
the problem:
double complex a
a = dcmplx(1.0D0,0.0D0)
write(6,*) a
write (6,10) a
10 format(1x,f12.8,5x,f12.8)
stop
end
E40-369-4% a.out
( 1.0000000000000, 1.0000000000000)
1.00000000 0.
The WRITE(6,*) produces (1.0,1.0) instead of the correct (1.0, 0.0).
Formatted output appears correctly.