Re: C++ PATCH for c++/84036, ICE with variadic lambda capture

2018-03-07 Thread Jason Merrill
On Sun, Feb 11, 2018 at 8:21 PM, Jason Merrill wrote: > The old lambda model handled variadic capture by focusing on the > FIELD_DECL rather than trying to map between capture proxies. The new > model relies more on capture proxies, so it makes sense to use them > more for variadic capture as wel

C++ PATCH for c++/84036, ICE with variadic lambda capture

2018-02-11 Thread Jason Merrill
The old lambda model handled variadic capture by focusing on the FIELD_DECL rather than trying to map between capture proxies. The new model relies more on capture proxies, so it makes sense to use them more for variadic capture as well. So with this patch we treat a variadic capture proxy as a p