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

Jason Merrill jason@redhat.com
Wed Mar 7 21:00:00 GMT 2018


On Sun, Feb 11, 2018 at 8:21 PM, Jason Merrill <jason@redhat.com> 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 well.  So with this patch we treat a
> variadic capture proxy as a pack, rather than the field.

Which makes the recently added is_capture_proxy_with_ref redundant.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wref.diff
Type: text/x-patch
Size: 3621 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180307/b2625a29/attachment.bin>


More information about the Gcc-patches mailing list