[Bug c++/48523] [C++0x] lambda cannot capture 'this' in class template

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 11 22:01:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48523

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-11 22:00:27 UTC ---
Author: jason
Date: Mon Apr 11 22:00:20 2011
New Revision: 172283

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172283
Log:
    PR c++/48523
    * tree.c (maybe_dummy_object): Use build_x_indirect_ref rather
    than cp_build_indirect_ref.

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



More information about the Gcc-bugs mailing list