From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6288 invoked by alias); 17 Sep 2010 00:12:01 -0000 Received: (qmail 6278 invoked by uid 22791); 17 Sep 2010 00:12:00 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Sep 2010 00:11:55 +0000 Received: by wyb36 with SMTP id 36so2388765wyb.0 for ; Thu, 16 Sep 2010 17:11:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.159.195 with SMTP id s45mr3469949wek.43.1284682312502; Thu, 16 Sep 2010 17:11:52 -0700 (PDT) Received: by 10.216.236.214 with HTTP; Thu, 16 Sep 2010 17:11:52 -0700 (PDT) Date: Fri, 17 Sep 2010 00:12:00 -0000 Message-ID: Subject: seriously broken fortran multi-dimensional arrays From: Mathew Yeates To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00103.txt.bz2 At a place in my code I do (gdb) p Tau_mask(itau,imix) $9 = .TRUE. but if I print the value at the address corresponding to this I get x/d 0x2850a40 + 4*(15*74 + 35) 0x2851c24: 0 .FALSE. is the correct value but .TRUE. gets printed.