http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51227
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-11-24 Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-24 11:50:46 UTC --- In instantiate_class_template_1 we do: instantiate_decl (lambda_function (type), false, false); but lambda_function can definitely return NULL_TREE and instantiate_decl cannot cope with it.