This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Access to arrays in fortran buggy


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]