From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8588 invoked by alias); 23 Mar 2010 20:51:17 -0000 Received: (qmail 8580 invoked by uid 22791); 23 Mar 2010 20:51:16 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Mar 2010 20:51:12 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2NKp80I010640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 23 Mar 2010 16:51:09 -0400 Received: from [10.15.16.55] (toner.yyz.redhat.com [10.15.16.55]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2NKp81s013549; Tue, 23 Mar 2010 16:51:08 -0400 Message-ID: <4BA92962.6050206@redhat.com> Date: Tue, 23 Mar 2010 20:51:00 -0000 From: Sami Wagiaalla User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: Ulrich Weigand CC: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [patch] Add support for imported declaration and correct search order References: <201003232031.o2NKV6fE029643@d12av02.megacenter.de.ibm.com> In-Reply-To: <201003232031.o2NKV6fE029643@d12av02.megacenter.de.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-03/txt/msg00798.txt.bz2 On 03/23/2010 04:31 PM, Ulrich Weigand wrote: > Sami Wagiaalla wrote: > >> 2010-03-03 Sami Wagiaalla >> >> * gdb.cp/shadow.exp: Removed kfail; test has been fix. > > This test is now failing for me: > > print x > $5 = 55 > (gdb) FAIL: gdb.cp/shadow.exp: Print imported namespace x > > (Same value as with GDB 7.1, except the test was KFAILed there ...) > I can try to reproduce it. Which compiler are you using ? > Any suggestions where to look? > In lookup_symbol_aux_local the call to cp_lookup_symbol_imports is failing so the local variable in the outer block is being found. IIRC the import statement was not nested correctly with older compilers so that would be my first guess.