This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85764] [8/9 Regression] bogus ‘this’ was not captured for this lambda function error
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 02 Jun 2018 03:15:22 +0000
- Subject: [Bug c++/85764] [8/9 Regression] bogus ‘this’ was not captured for this lambda function error
- Auto-submitted: auto-generated
- References: <bug-85764-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85764
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Jun 2 03:14:44 2018
New Revision: 261101
URL: https://gcc.gnu.org/viewcvs?rev=261101&root=gcc&view=rev
Log:
PR c++/85764 - bogus 'this' not captured error.
* lambda.c (resolvable_dummy_lambda): Use nonlambda_method_basetype.
(nonlambda_method_basetype): Handle NSDMI.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-this2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/lambda.c