Re: [C++ Patch] PR 51227

2011-11-24 Thread Jason Merrill
On 11/24/2011 07:22 AM, Paolo Carlini wrote: Ok for mainline, or we want to do something more sophisticated, maybe earlier? OK, but in the case that decl is null, let's gcc_assert (errorcount); that should never happen for well-formed code. Jason

[C++ Patch] PR 51227

2011-11-24 Thread Paolo Carlini
Hi, this is an ICE on invalid: toward the end of instantiate_class_template_1 we call lambda_function without checking its return value for NULL_TREE (it can well be so) and we pass it directly to instantiate_decl which doesn't know how to cope with that. But everything is wrong in that case,