[Bug fortran/9395] cannot access allocatable array in fortran90
marcialcz at gmail dot com
sourceware-bugzilla@sourceware.org
Tue Jun 11 07:06:00 GMT 2013
http://sourceware.org/bugzilla/show_bug.cgi?id=9395
Marcial <marcialcz at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marcialcz at gmail dot com
--- Comment #16 from Marcial <marcialcz at gmail dot com> ---
Does not work either on gdb7.4 as x86_64-apple-darwin10.8.0 but!
Steven Vancoillie has found a way around this that may be useful. He explains
in his blog:
http://numericalnoob.blogspot.mx/2012/08/fortran-allocatable-arrays-and-pointers.html
he basically does this:
real, allocatable :: variableName(:)
allocate(variableName(4))
variableName = (/1,2,3,4/)
...
(gdb) p *((real*) variableName)@4
$1 = (1,2,3,4)
(gdb) p *((real*) variableName + 2)
$2 = 3
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list