[Bug c++/54277] Template class member referred to with implicit this inside lambda is incorrectly const-qualified

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 17 02:42:00 GMT 2013


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-17 02:41:35 UTC ---
Author: jason
Date: Sun Mar 17 02:41:22 2013
New Revision: 196747

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196747
Log:
    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.

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



More information about the Gcc-bugs mailing list