This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
misrepresentation of complex numbers
- From: "Arthur H. Edwards,1,505-853-6042,505-256-0834" <edwards at icantbelieveimdoingthis dot com>
- To: gdb at sources dot redhat dot com, edwards at icantbelieveimdoingthis dot com
- Date: Mon, 26 Nov 2001 13:07:54 -0700
- Subject: misrepresentation of complex numbers
I attach a very simple code, testc.f that illustrates the bug in dbg.
After compiling with the -g option stop the code at line 7 and issue the
gdb command
print s
gdb will respond with
$1 = (10,10)
issue the cont command and you will see that the number should be
10, 4
Art Edwards
program t1
implicit real*8(a-h,o-z)
complex*16 s
a = 2*5.0d0
b = 2*2.0d0
s=cmplx(a,b)
write(6,3555) s
3555 format(5x,d20.10)
stop
end