From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11982 invoked by alias); 29 May 2008 08:03:29 -0000 Received: (qmail 11970 invoked by uid 22791); 29 May 2008 08:03:28 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 29 May 2008 08:03:09 +0000 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 5455D414A0; Thu, 29 May 2008 10:03:06 +0200 (CEST) From: Andreas Schwab To: "Peng Yu" Cc: gdb@sourceware.org Subject: Re: No symbol "" in current context error for temporary variable in template class References: <366c6f340805282321oeb69940u80c52ecb686bf6b6@mail.gmail.com> X-Yow: Laundry is the fifth dimension!! ...um...um... th' washing machine is a black hole and the pink socks are bus drivers who just fell in!! Date: Fri, 30 May 2008 12:25:00 -0000 In-Reply-To: <366c6f340805282321oeb69940u80c52ecb686bf6b6@mail.gmail.com> (Peng Yu's message of "Thu, 29 May 2008 01:21:05 -0500") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2008-05/txt/msg00173.txt.bz2 "Peng Yu" writes: > I have the following code. I try to print the variable temp in the > constructor of A. But gdb can not do that. The error message is shown > blow the C++ code. Would you please let me know how to make it work? The compiler did not emit any information about the variable. There is nothing the debugger can do about. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."