From: Paolo Carlini Date: Thu, 8 Jan 2015 18:04:03 +0000 (+0000) Subject: re PR c++/59004 (ICE generated by __func__) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec1240433d694c4662f63ccf6e8f36b7cbdffdf8;p=gcc.git re PR c++/59004 (ICE generated by __func__) 2015-01-08 Paolo Carlini PR c++/59004 * g++.dg/ext/fnname4.C: New. From-SVN: r219353 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ed09aed3f1..e2112fff3ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-08 Paolo Carlini + + PR c++/59004 + * g++.dg/ext/fnname4.C: New. + 2015-01-08 Paolo Carlini PR c++/64462 diff --git a/gcc/testsuite/g++.dg/ext/fnname4.C b/gcc/testsuite/g++.dg/ext/fnname4.C new file mode 100644 index 00000000000..65409875eca --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/fnname4.C @@ -0,0 +1,14 @@ +// PR c++/59004 + +template class A {}; + +template +class B { +public: + static const int y = (x != -1 ? 0 : 0); + + template void g(const A &a) { + const char *x2 = __func__; + } +}; +template void B<0>::g<0>(const A<0> &);