[Bug fortran/11104] gdb 7.0 does not print two dimensional Fortran arrays correctly.

tromey at sourceware dot org via Gdb-prs <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=11104

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #14 from Tom Tromey <tromey at sourceware dot org> ---
Somehow "break test" stops in the prologue and "M" isn't
correct at that point:

(gdb) p M(2,2)
❌️ Cannot access memory at address 0x27fffde4c6b3c
(gdb) p m
❌️ Cannot access memory at address 0x7ffffffff000

However if I "step" all is well

(gdb) s
15        do J=1,N
(gdb) p m
$1 = ((1, 2) (3, 4))
(gdb) p m(2,2)
$2 = 4


The prologue thing is probably a compiler bug.
Though I suppose we ought to investigate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.