From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7551 invoked by alias); 29 Jun 2011 20:56:56 -0000 Received: (qmail 7539 invoked by uid 22791); 29 Jun 2011 20:56:55 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Wed, 29 Jun 2011 20:56:43 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5TKuS5C008031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 29 Jun 2011 16:56:28 -0400 Received: from [127.0.0.1] (ovpn-113-39.phx2.redhat.com [10.3.113.39]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5TKuRW2007155; Wed, 29 Jun 2011 16:56:27 -0400 Message-ID: <4E0B917A.7040508@redhat.com> Date: Wed, 29 Jun 2011 20:56:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jan Kratochvil CC: gcc-patches@gcc.gnu.org, Gabriel Dos Reis , gdb-patches@sourceware.org Subject: Re: [gcc patch] Re: C++ member function template id not matching linkage name (PR debug/49408) References: <20110627150431.GA24889@host1.jankratochvil.net> <4E08C538.2050001@redhat.com> <20110629200004.GA10065@host1.jankratochvil.net> In-Reply-To: <20110629200004.GA10065@host1.jankratochvil.net> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit 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: 2011-06/txt/msg00473.txt.bz2 On 06/29/2011 04:00 PM, Jan Kratochvil wrote: > On Mon, 27 Jun 2011 20:00:24 +0200, Jason Merrill wrote: >> They should be supressed whenever the function appears in an >> expression context, either as a pointer to member function (i.e. the >> operand of '&') > > Done, therefore it is no longer restricted only to templates as before. > >> or as the function being called in a call expression. > > I implemented it in the patch below but I do not agree + understand it. > > The call expression is in libiberty/testsuite/demangle-expected modified by > this patch as: > > # decltype/fn call test > --format=gnu-v3 > _Z4add3IidEDTclL_Z1gEfp_fp0_EET_T0_ > -decltype (g({parm#1}, {parm#2})) add3(int, double) > +decltype (g) add3(int, double) Here you're suppressing the arguments to a call, which we want to keep; we only want to suppress printing the parameter types (which are not part of the source expression). Jason