This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60463] Lambda function can call a non-const member function with const this
- 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: Mon, 22 Sep 2014 19:22:42 +0000
- Subject: [Bug c++/60463] Lambda function can call a non-const member function with const this
- Auto-submitted: auto-generated
- References: <bug-60463-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60463
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Sep 22 19:22:11 2014
New Revision: 215478
URL: https://gcc.gnu.org/viewcvs?rev=215478&root=gcc&view=rev
Log:
PR c++/63320
PR c++/60463
PR c++/60755
* lambda.c (maybe_resolve_dummy, lambda_expr_this_capture): Handle
not finding 'this'.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/lambda.c
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice3.C