re PR c++/49554 ([C++0x] lambda capture causes "cannot call member function ... witho...
authorJason Merrill <jason@redhat.com>
Wed, 29 Jun 2011 17:15:06 +0000 (13:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 29 Jun 2011 17:15:06 +0000 (13:15 -0400)
commit40d55020a382cc1836911b9702f6880b49c1d955
tree24938062efd7fb502da82065526a9b3c36fe7213
parentde95483d1e787c73bf1c84e47254bdab4f839762
re PR c++/49554 ([C++0x] lambda capture causes "cannot call member function ... without object")

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.

From-SVN: r175657
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template3.C [new file with mode: 0644]