Re: C++ PATCH for c++/53137 (ICE with lambda in template)

2012-06-30 Thread H.J. Lu
On Fri, Jun 1, 2012 at 9:50 AM, Jason Merrill wrote: > In 4.7, this is one bug: we are doing a push_to_top_level to instantiate the > lambda, and then not pushing back into the function scope that the lambda > belongs to.  Fixed by following the lead of synthesize_method and only doing > push_func

C++ PATCH for c++/53137 (ICE with lambda in template)

2012-06-01 Thread Jason Merrill
In 4.7, this is one bug: we are doing a push_to_top_level to instantiate the lambda, and then not pushing back into the function scope that the lambda belongs to. Fixed by following the lead of synthesize_method and only doing push_function_context if we're dealing with a local class. On the