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;

Reply via email to