From patchwork Sun Jul 4 18:19:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= X-Patchwork-Id: 57849 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 39593B6EEF for ; Mon, 5 Jul 2010 04:20:08 +1000 (EST) Received: (qmail 14417 invoked by alias); 4 Jul 2010 18:20:03 -0000 Received: (qmail 14400 invoked by uid 22791); 4 Jul 2010 18:20:02 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-bw0-f47.google.com (HELO mail-bw0-f47.google.com) (209.85.214.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 04 Jul 2010 18:19:57 +0000 Received: by bwz10 with SMTP id 10so2221378bwz.20 for ; Sun, 04 Jul 2010 11:19:55 -0700 (PDT) Received: by 10.204.134.156 with SMTP id j28mr1573807bkt.10.1278267595099; Sun, 04 Jul 2010 11:19:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.61.202 with HTTP; Sun, 4 Jul 2010 11:19:35 -0700 (PDT) From: =?ISO-8859-1?Q?Manuel_L=F3pez=2DIb=E1=F1ez?= Date: Sun, 4 Jul 2010 20:19:35 +0200 Message-ID: Subject: PR c++/16630 missing type name in __PRETTY_FUNCTION__ To: Gcc Patch List X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org I committed as obvious the testcase of PR 16630 so we do not regress in the future. Cheers, Manuel B::X\\)" } } Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 161804) +++ gcc/testsuite/ChangeLog (revision 161805) @@ -1,3 +1,8 @@ +2010-07-04 Manuel López-Ibáñez + + PR c++/16630 + * g++.dg/ext/pretty3.C: New. + 2010-07-04 Richard Guenther PR middle-end/44809 Index: gcc/testsuite/g++.dg/ext/pretty3.C =================================================================== --- gcc/testsuite/g++.dg/ext/pretty3.C (revision 0) +++ gcc/testsuite/g++.dg/ext/pretty3.C (revision 161805) @@ -0,0 +1,19 @@ +// PR c++/16630 +// { dg-do compile } +// { dg-options "" } +extern "C" int printf (const char*, ...); + +template +struct B { typedef T X; }; + +template +struct D +{ + const char* foo (typename B::X) { return __PRETTY_FUNCTION__; } +}; + +int main () +{ + printf ("%s\n", D().foo (0)); +} +// { dg-final { scan-assembler "const char\\* D::foo\\(typename