This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug fortran/9395] cannot access allocatable array in fortran90
- From: "marcialcz at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 11 Jun 2013 07:06:57 +0000
- Subject: [Bug fortran/9395] cannot access allocatable array in fortran90
- Auto-submitted: auto-generated
- References: <bug-9395-4717 at http dot sourceware dot org/bugzilla/>
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.