This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49554] [4.7 Regression] [C++0x] lambda capture causes "cannot call member function ... without object"


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-29 17:15:11 UTC ---
Author: jason
Date: Wed Jun 29 17:15:06 2011
New Revision: 175657

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175657
Log:
    PR c++/49554
    * semantics.c (lambda_proxy_type): New.
    (build_capture_proxy): Use it.
    * cp-tree.h (DECLTYPE_FOR_LAMBDA_PROXY): New.
    * pt.c (tsubst) [DECLTYPE_TYPE]: Use them.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]