From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10267 invoked by alias); 22 Oct 2011 04:54:21 -0000 Received: (qmail 10257 invoked by uid 22791); 22 Oct 2011 04:54:20 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 22 Oct 2011 04:54:05 +0000 Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [172.25.149.3]) by smtp-out.google.com with ESMTP id p9M4s4Wi001055 for ; Fri, 21 Oct 2011 21:54:04 -0700 Received: from pzk36 (pzk36.prod.google.com [10.243.19.164]) by hpaq3.eem.corp.google.com with ESMTP id p9M4rJWW002431 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 21 Oct 2011 21:54:02 -0700 Received: by pzk36 with SMTP id 36so16146002pzk.11 for ; Fri, 21 Oct 2011 21:54:01 -0700 (PDT) Received: by 10.68.73.103 with SMTP id k7mr22877058pbv.30.1319259241931; Fri, 21 Oct 2011 21:54:01 -0700 (PDT) Received: by 10.68.73.103 with SMTP id k7mr22877043pbv.30.1319259241821; Fri, 21 Oct 2011 21:54:01 -0700 (PDT) Received: from coign.google.com ([216.129.97.197]) by mx.google.com with ESMTPS id jm5sm37886012pbc.1.2011.10.21.21.53.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Oct 2011 21:54:01 -0700 (PDT) From: Ian Lance Taylor To: Marc Glisse Cc: gcc-patches@gcc.gnu.org Subject: Re: Ping: demangle C++ extern "C" functions References: Date: Sat, 22 Oct 2011 05:54:00 -0000 In-Reply-To: (Marc Glisse's message of "Fri, 21 Oct 2011 20:59:33 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg02052.txt.bz2 Marc Glisse writes: >> _Z1aIFYviEEvPT_ >> void a(void (*)(int) extern "C") Does g++ ever actually generate a symbol name like this? Is it worth worrying about? Personally if we are going to print this at all I think the extern "C" should be in square brackets. E.g., void a(void (*)(int) [extern "C"]) Ian