This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47014] [C++0x] ICE: tree check: expected tree that contains âdecl minimalâ structure, have ânop_exprâ in decl_linkage, at cp/tree.c:2975
- From: "1zeeky at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Dec 2010 18:04:45 +0000
- Subject: [Bug c++/47014] [C++0x] ICE: tree check: expected tree that contains âdecl minimalâ structure, have ânop_exprâ in decl_linkage, at cp/tree.c:2975
- Auto-submitted: auto-generated
- References: <bug-47014-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47014
--- Comment #1 from 1zeeky at gmail dot com 2010-12-19 18:04:41 UTC ---
The problem arises (or at least seems to) whenever you 'force' (i.e. via
reinterpret_cast) a non-function as template-parameter (e.g. an int fails to
compile with almost the same ICE).
That would imply that a lambda is not regarded as a proper function, as the
following fails as well with the same ICE as already posted:
template<void (fn)()>
class LambdaFunctor
{
};
LambdaFunctor<*[](){}> functor;