[Bug c++/85764] [8/9 Regression] bogus ‘this’ was not captured for this lambda function error

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 11 22:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85764

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jun 11 22:02:07 2018
New Revision: 261462

URL: https://gcc.gnu.org/viewcvs?rev=261462&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:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-this2.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/lambda.c


More information about the Gcc-bugs mailing list