From: Manuel López-Ibáñez Date: Sun, 4 Jul 2010 18:16:59 +0000 (+0000) Subject: re PR c++/16630 (missing type name in __PRETTY_FUNCTION__) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de8e41bca88a1aae1d391e817a6a1c80be04e3af;p=gcc.git re PR c++/16630 (missing type name in __PRETTY_FUNCTION__) 2010-07-04 Manuel López-Ibáñez PR c++/16630 * g++.dg/ext/pretty3.C: New. From-SVN: r161805 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bafaa7e1712..e4aedfebf88 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/g++.dg/ext/pretty3.C b/gcc/testsuite/g++.dg/ext/pretty3.C new file mode 100644 index 00000000000..01b14579af2 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/pretty3.C @@ -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 B::X\\)" } }