This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]