From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29670 invoked by alias); 11 Feb 2008 13:32:34 -0000 Received: (qmail 29662 invoked by uid 22791); 11 Feb 2008 13:32:33 -0000 X-Spam-Check-By: sourceware.org Received: from host0.dyn.jankratochvil.net (HELO host0.dyn.jankratochvil.net) (89.250.240.59) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 11 Feb 2008 13:32:06 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.2/8.14.1) with ESMTP id m1BDVu9Y017600; Mon, 11 Feb 2008 14:31:56 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.2/8.14.2/Submit) id m1BDVtiJ017599; Mon, 11 Feb 2008 14:31:55 +0100 Date: Mon, 11 Feb 2008 13:32:00 -0000 From: Jan Kratochvil To: Markus Deuling Cc: GDB Patches Subject: Re: Access to arrays in fortran buggy Message-ID: <20080211133155.GA17547@host0.dyn.jankratochvil.net> References: <47B040C7.8080101@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47B040C7.8080101@de.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00172.txt.bz2 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