From ec1240433d694c4662f63ccf6e8f36b7cbdffdf8 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 8 Jan 2015 18:04:03 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/ext/fnname4.C | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/ext/fnname4.C 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> &); -- 2.30.2