PR c++/54764
commit9dd19b79a49ba8b497c0e9f44bb178a8d5bc4807
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Mar 2013 02:38:50 +0000 (17 02:38 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 17 Mar 2013 02:38:50 +0000 (17 02:38 +0000)
tree327525948c4a7e69b6203fbe7bbe1911d384e157
parent507e3d234fd3be3b79404ff4b145d628ae87b0ea
PR c++/54764
PR c++/55972
* name-lookup.h (tag_scope): Add ts_lambda.
* semantics.c (begin_lambda_type): Use it.
* decl.c (xref_tag_1): Set CLASSTYPE_LAMBDA_EXPR.
* pt.c (check_default_tmpl_args): Ignore lambdas.
(push_template_decl_real): Handle lambdas.
* tree.c (no_linkage_check): Adjust lambda check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196742 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi3.C [new file with mode: 0644]