P0409R2 - allow lambda capture [=, this]
commite6b5fa173fef314f40dea48230b0bcb36663c44f
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2017 19:36:47 +0000 (20 19:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2017 19:36:47 +0000 (20 19:36 +0000)
tree7a26e0a41d63380941332667f2b8a5f7d7ad8d52
parent27a0cfeab1c90a6e33b6eafc32ff0854df3bec07
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253030 138bc75d-0d04-0410-961f-82ee72b054a4
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