Commit 9fec7f59 by Paolo Carlini Committed by Paolo Carlini

re PR c++/52819 (ICE: tree check: expected tree that contains 'decl minimal'…

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
parent 4d7cf10d
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
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment