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:
parent
8b93f82995
commit
ec1240433d
@ -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
|
||||
|
14
gcc/testsuite/g++.dg/ext/fnname4.C
Normal file
14
gcc/testsuite/g++.dg/ext/fnname4.C
Normal 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> &);
|
Loading…
Reference in New Issue
Block a user