This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug fortran/18373] Array of double precision complex numbers


https://sourceware.org/bugzilla/show_bug.cgi?id=18373

Bernhard Heckel <bernhard.heckel at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
                 CC|                            |bernhard.heckel at intel dot com
            Version|4.8                         |7.11
     Ever confirmed|1                           |0

--- Comment #1 from Bernhard Heckel <bernhard.heckel at intel dot com> ---
Works for me in GDB 7.11, Gfortran 4.8.3, Red Hat 7.1

*** Test snippet ***
program testprog

  complex*16 :: cplx_arr(5)
  cplx_arr(:) = CMPLX(0,0)
  cplx_arr(2) = CMPLX(2,2)

  write (*,*) "cplx_arr: ", cplx_arr
end program

*** Output in GDB ***
Breakpoint 1, testprog () at Bug18373.f90:22
22        write (*,*) "cplx_arr: ", cplx_arr
(gdb) whatis cplx_arr
type = complex(kind=8) (5)
(gdb) p cplx_arr
$1 = ((0,0), (2,2), (0,0), (0,0), (0,0))
(gdb) p cplx_arr(2)
$2 = (2,2)
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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