P0409R2 - allow lambda capture [=, this]
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Sep 2017 19:36:47 +0000 (21:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Sep 2017 19:36:47 +0000 (21:36 +0200)
commit2ffb574542b10b14841c2807047e7396e3a63f37
tree7a26e0a41d63380941332667f2b8a5f7d7ad8d52
parentfb3cd39dcfcecf8e9bc605bd3fe3ee74c8407b90
P0409R2 - allow lambda capture [=, this]

P0409R2 - allow lambda capture [=, this]
* parser.c (cp_parser_lambda_introducer): For cxx2a don't pedwarn on
redundant [=, this].

* g++.dg/cpp1z/lambda-this1.C: Don't expect error for c++2a on [=, this]
capture.  Add further tests.
* g++.dg/cpp0x/lambda/lambda-capture-redundancy.C: Don't expect error
for c++2a on [=, this] capture.

From-SVN: r253030
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-redundancy.C
gcc/testsuite/g++.dg/cpp1z/lambda-this1.C