This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Access to arrays in fortran buggy
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Markus Deuling <deuling at de dot ibm dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 11 Feb 2008 14:31:55 +0100
- Subject: Re: Access to arrays in fortran buggy
- References: <47B040C7.8080101@de.ibm.com>
On Mon, 11 Feb 2008 13:34:15 +0100, Markus Deuling wrote:
...
> (gdb) p array
> $1 = (1, 2, 3, 4, 5, 6, 7)
>
> whereas this
> (gdb) p array(1:2)
> $2 = (2, 3)
>
> is wrong. The correct result should have been (1,2), Fortran starts counting array members with 1 instead
> of 0.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22244
Regards,
Jan