This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]