From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16274 invoked by alias); 17 Sep 2010 23:36:54 -0000 Received: (qmail 16264 invoked by uid 22791); 17 Sep 2010 23:36:53 -0000 X-SWARE-Spam-Status: No, hits=-1.7 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-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Sep 2010 23:36:49 +0000 Received: by wwi14 with SMTP id 14so3121729wwi.12 for ; Fri, 17 Sep 2010 16:36:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.144.2 with SMTP id x2mr4854089wbu.76.1284766605393; Fri, 17 Sep 2010 16:36:45 -0700 (PDT) Received: by 10.216.236.214 with HTTP; Fri, 17 Sep 2010 16:36:45 -0700 (PDT) Date: Fri, 17 Sep 2010 23:36:00 -0000 Message-ID: Subject: more fortran problems 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/msg00108.txt.bz2 I am dealing with an array of logicals. With the line if (Tau_mask(itau,imix)) then I type (gdb) set Tau_mask(itau,imix) = .TRUE. (gdb) print Tau_mask(itau,imix) .TRUE. . but the code below the "if" statement isnt executed. So, now I'm trying set the memory location. (gdb) print &Tau_mask $6 = (PTR TO -> ( logical(kind=4) (*,*))) 0x2859630 (gdb) set (int)0x2859630=.TRUE. Left operand of assignment is not an lvalue What am I doing wrong? -Mathew