From patchwork Sun Jul 4 18:19:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: PR c++/16630 missing type name in __PRETTY_FUNCTION__ Date: Sun, 04 Jul 2010 08:19:35 -0000 From: =?utf-8?b?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= X-Patchwork-Id: 57849 Message-Id: To: Gcc Patch List 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