]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/66999 - 'this' captured by reference.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jun 2019 22:41:35 +0000 (22:41 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jun 2019 22:41:35 +0000 (22:41 +0000)
commit7ff4860a198c729748d71f0785c586e3d6812155
tree9f88d2baf98fe2d850f45921a783813d7575ec0e
parent04a89d67a59d2de7d4153f6a0184c1aabb5b838c
PR c++/66999 - 'this' captured by reference.
* parser.c (cp_parser_lambda_introducer): Reject `&this'.  Use
cp_lexer_nth_token_is instead of cp_lexer_peek_nth_token.

* g++.dg/cpp0x/lambda/lambda-this21.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272223 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this21.C [new file with mode: 0644]