From: Mathew Yeates <mat.yeates@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: fortran multidimensional arrays and pointers
Date: Mon, 07 Feb 2011 18:48:00 -0000 [thread overview]
Message-ID: <AANLkTikV=HK5N2wekQ9ufGHKXry=c52pe-q_BSkf0cdB@mail.gmail.com> (raw)
In-Reply-To: <m3lj1rzuec.fsf@fleche.redhat.com>
Here is a very simple example
-----------------------------------------
program bug
integer , pointer,dimension(:) :: some_ints
allocate (some_ints(1:10))
some_ints(1) = 1
some_ints(2) = 2
write(*,*) some_ints(1)
write(*,*) some_ints(2)
end program bug
------------------------------------------
The program prints out '1','2'
but in gdb
#gdb bug
>b 6
>run
>print some_ints(1)
0
>print some_ints(2)
-1
>quit
On Mon, Feb 7, 2011 at 8:22 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Mathew" == Mathew Yeates <mat.yeates@gmail.com> writes:
>
> Mathew> Are fortran pointers supported?
>
> I don't know, but could you file a report in bugzilla with your example
> and what you expected to happen?
>
> Tom
>
next prev parent reply other threads:[~2011-02-07 18:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 20:35 Mathew Yeates
2011-02-07 16:23 ` Tom Tromey
2011-02-07 18:48 ` Mathew Yeates [this message]
2011-02-07 19:38 ` Jan Kratochvil
2011-02-24 19:33 ` Mathew Yeates
2011-03-02 15:57 ` Jan Kratochvil
2011-03-03 17:24 ` Tom Tromey
2011-03-03 17:43 ` Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikV=HK5N2wekQ9ufGHKXry=c52pe-q_BSkf0cdB@mail.gmail.com' \
--to=mat.yeates@gmail.com \
--cc=gdb@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox