re PR c++/59004 (ICE generated by __func__)

2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59004
	* g++.dg/ext/fnname4.C: New.

From-SVN: r219353
This commit is contained in:
Paolo Carlini 2015-01-08 18:04:03 +00:00 committed by Paolo Carlini
parent 8b93f82995
commit ec1240433d
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59004
* g++.dg/ext/fnname4.C: New.
2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64462

View File

@ -0,0 +1,14 @@
// PR c++/59004
template<int z> class A {};
template<int x>
class B {
public:
static const int y = (x != -1 ? 0 : 0);
template<int z> void g(const A<y> &a) {
const char *x2 = __func__;
}
};
template void B<0>::g<0>(const A<0> &);