PR c++/85764 - bogus 'this' not captured error.
authorJason Merrill <jason@redhat.com>
Sat, 2 Jun 2018 03:14:44 +0000 (23:14 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 2 Jun 2018 03:14:44 +0000 (23:14 -0400)
commit4cda703ebcfebec0d79f43c98cfca11e911d5b64
tree46665a006f15c20cb88feaca29b8d593d401eca6
parent946d79a61ca8c7dd2872c43fffaec432fe7b46e6
PR c++/85764 - bogus 'this' not captured error.

* lambda.c (resolvable_dummy_lambda): Use nonlambda_method_basetype.
(nonlambda_method_basetype): Handle NSDMI.

From-SVN: r261101
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-this2.C [new file with mode: 0644]