[Bug c++/63601] Segfault on usage of 'this' in unevaluated context inside lambda

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 20 17:35:00 GMT 2014


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Oct 20 17:29:02 2014
New Revision: 216488

URL: https://gcc.gnu.org/viewcvs?rev=216488&root=gcc&view=rev
Log:
    PR c++/63601
    * lambda.c (current_nonlambda_function): New.
    * semantics.c (finish_this_expr): Use it.
    * cp-tree.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this20.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/lambda.c
    trunk/gcc/cp/semantics.c



More information about the Gcc-bugs mailing list