Re: C++ PATCH for c++/60252 (ICE with VLA in lambda parameter)

2014-02-21 Thread Jason Merrill
On 02/21/2014 09:10 AM, Jason Merrill wrote: While parsing the template parameter list for a lambda, we've already pushed into the closure class but haven't created the op() FUNCTION_DECL, so trying to capture 'this' by way of the 'this' pointer of op() breaks. Avoid the ICE by not trying to cap

C++ PATCH for c++/60252 (ICE with VLA in lambda parameter)

2014-02-21 Thread Jason Merrill
While parsing the template parameter list for a lambda, we've already pushed into the closure class but haven't created the op() FUNCTION_DECL, so trying to capture 'this' by way of the 'this' pointer of op() breaks. Avoid the ICE by not trying to capture 'this' when parsing a parameter list.