Re: [C++ PATCH] c++/61636 generic lambdas and this capture

2017-01-17 Thread Jason Merrill
On 01/13/2017 08:33 AM, Nathan Sidwell wrote: * lambda.c (resolvable_dummy): New, broken out of ... Maybe resolvable_dummy_lambda, since that's what it returns? OK with that change. Jason

Re: [C++ PATCH] c++/61636 generic lambdas and this capture

2017-01-13 Thread Nathan Sidwell
On 12/21/2016 03:27 PM, Nathan Sidwell wrote: This patch addresses bug 61636, which is an ICE during generic lambda instantiation due to unexpected this capture. Here's an updated patch. Firstly I added the worker function to lambda.c, with a more descriptive name. Secondly, this implements a

[C++ PATCH] c++/61636 generic lambdas and this capture

2016-12-21 Thread Nathan Sidwell
This patch addresses bug 61636, which is an ICE during generic lambda instantiation due to unexpected this capture. The problem is that a generic lambda's closure type is not a template, only the function operator is. Thus this capture has to be determined at parsing time (and anyway, it'd be