From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4794 invoked by alias); 30 Aug 2002 01:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4758 invoked by uid 71); 30 Aug 2002 01:56:01 -0000 Resent-Date: 30 Aug 2002 01:56:01 -0000 Resent-Message-ID: <20020830015601.4757.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, llib@computer.org Received: (qmail 30805 invoked from network); 30 Aug 2002 01:47:14 -0000 Received: from unknown (HELO bullet.anu.edu.au) (150.203.163.6) by sources.redhat.com with SMTP; 30 Aug 2002 01:47:14 -0000 Received: (from wpc@localhost) by bullet.anu.edu.au (8.9.3/8.9.3) id LAA03127; Fri, 30 Aug 2002 11:47:12 +1000 (EST) Message-Id: <200208300147.LAA03127@bullet.anu.edu.au> Date: Thu, 29 Aug 2002 19:36:00 -0000 From: llib@computer.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7768: __PRETTY_FUNCTION__ for template destructor is wrong X-SW-Source: 2002-08/txt/msg00621.txt.bz2 List-Id: >Number: 7768 >Category: c++ >Synopsis: __PRETTY_FUNCTION__ for template destructor is wrong >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Aug 29 18:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Bill Clarke >Release: 3.1.1 >Organization: Australian National University >Environment: System: SunOS bullet 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: ../gcc-3.1.1/configure --with-cpu=ultrasparc --enable-lanaguages=c,c++,f77 : (reconfigured) ../gcc-3.1.1/configure --with-cpu=ultrasparc --enable-languages=c,c++,f77 >Description: __PRETTY_FUNCTION__ in a destructor of a template looks like a constructor that returns void and takes no args: e.g., this code: // begins #include template struct X { X() { std::cout << __PRETTY_FUNCTION__ << std::endl; } ~X() { std::cout << __PRETTY_FUNCTION__ << std::endl; } }; int main() { { X x; } return 0; } // ends when compiled and executed produces: X::X() [with T = int] void X::X() [with T = int] >How-To-Repeat: compile and run above code with g++ >Fix: >Release-Note: >Audit-Trail: >Unformatted: