P0806R2 - Deprecate implicit capture of this via [=]
authorMarek Polacek <polacek@redhat.com>
Mon, 13 Aug 2018 15:46:42 +0000 (15:46 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 13 Aug 2018 15:46:42 +0000 (15:46 +0000)
commite6a1e5fe7346458208ede97741382061a6191024
treed5b2c43f0745495e0a950a70183cf0936c71db04
parent27a98312c54b6c00a4e7deb1bf663547cd4f2dcc
P0806R2 - Deprecate implicit capture of this via [=]

P0806R2 - Deprecate implicit capture of this via [=]
* lambda.c (add_default_capture): Formatting fixes.  Warn about
deprecated implicit capture of this via [=].

* g++.dg/cpp2a/lambda-this1.C: New test.
* g++.dg/cpp2a/lambda-this2.C: New test.
* g++.dg/cpp2a/lambda-this3.C: New test.

From-SVN: r263508
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/lambda-this1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-this2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-this3.C [new file with mode: 0644]