C++ PATCH for c++/81236, missed 'this' capture with template-id in generic lambda

Jason Merrill jason@redhat.com
Thu Mar 15 03:48:00 GMT 2018


On Tue, Aug 29, 2017 at 5:37 PM, Jason Merrill <jason@redhat.com> wrote:
> We could approach this by extending that change to all generic
> lambdas, and that might be appropriate for GCC 7, but it seems to me
> that this approach will just mean any problems with doing all the
> normal processing in a template will remain latent until someone
> happens to use them in a generic lambda; instead, this patch removes
> the template special case and fixes the normal code to work properly
> in templates.

I noticed today that this caused a regression on the attached
testcases, because we weren't updating the type of the BASELINK after
instantiating the auto function.

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


More information about the Gcc-patches mailing list