------- Comment #6 from piotr dot wyderski at gmail dot com 2010-01-26 20:09 ------- (In reply to comment #4) > I assume the original version is also intended to work with non-empty > captures, > when operator() is non-static
Yes, that's the purpose of the first two specializations. But that part works correctly, only the function ptr variant ICEs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42877