re PR c++/52819 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'nop_expr' in decl_linkage, at cp/tree.c:3136)
2014-08-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52819 * g++.dg/template/pr52819.C: New. From-SVN: r214062
This commit is contained in:
parent
4d7cf10d21
commit
9fec7f592f
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-08-16 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/52819
|
||||
* g++.dg/template/pr52819.C: New.
|
||||
|
||||
2014-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR fortran/62142
|
||||
|
|
14
gcc/testsuite/g++.dg/template/pr52819.C
Normal file
14
gcc/testsuite/g++.dg/template/pr52819.C
Normal file
|
@ -0,0 +1,14 @@
|
|||
// PR c++/52819
|
||||
|
||||
typedef void (*cfi)(void*);
|
||||
|
||||
void function(int *a) {}
|
||||
|
||||
template<cfi Func>
|
||||
void get() { Func(0); }
|
||||
|
||||
int main()
|
||||
{
|
||||
get<(cfi)function>(); // { dg-error "" }
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue