re PR c++/54277 (Template class member referred to with implicit this inside lambda...
authorJason Merrill <jason@redhat.com>
Sun, 17 Mar 2013 02:41:22 +0000 (22:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 17 Mar 2013 02:41:22 +0000 (22:41 -0400)
commitbab5167fe640ee7596bb644035cad57f6c9160c0
tree4260d93a9ab8a461ec2d417499b6687d36124630
parentd14d53ad6501853b2471ad90ead6eace803226a7
re PR c++/54277 (Template class member referred to with implicit this inside lambda is incorrectly const-qualified)

PR c++/54277
* cp-tree.h (WILDCARD_TYPE_P): Split out from...
(MAYBE_CLASS_TYPE_P): ...here.
* semantics.c (lambda_capture_field_type): Only build a
magic decltype for wildcard types.
(lambda_proxy_type): Likewise.
(finish_non_static_data_member): Get the quals from
the object.

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