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: "dharenberg at ethz dot ch" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 21 May 2014 08:41:51 +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/>
https://sourceware.org/bugzilla/show_bug.cgi?id=9395
dharenberg at ethz dot ch changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dharenberg at ethz dot ch
--- Comment #19 from dharenberg at ethz dot ch ---
Workaround/ partial solution
I had the same problem with this version:
$ gdb -version
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
But not with the version that came with the intel compiler:
$ gdb-ia -version
No symbol table is loaded. Use the "file" command.
GNU gdb (GDB) 7.5-1.0.160
However, in both versions, when the allocatable array is a component of a
derived type, then the problem essentially reappears. An easy workaround for
this case is to use the ASSOCIATE construct:
associate(my_array => this%allocatable_array)
Then I can see the contents of my_array, but not of this%allocatable_array.
I am a beginner, so I do all this in Eclipse, where it works by setting the
Debugger to gdb-ia in the launch configuration properties (given that you have
the Intel compiler installed).
I guess this partially confirms comment 17 by sagovic.
--
You are receiving this mail because:
You are on the CC list for the bug.