diff options
author | Marek Polacek <polacek@redhat.com> | 2019-06-12 22:41:35 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-06-12 22:41:35 +0000 |
commit | 22f6d174419e0649315049f5e2aec4b9a90e6ddc (patch) | |
tree | 9f88d2baf98fe2d850f45921a783813d7575ec0e /gcc/tree-ssa-loop-unswitch.c | |
parent | 0d0137a37fc29c1dc94bb8f8f90b5fdece6cb64b (diff) | |
download | gcc-22f6d174419e0649315049f5e2aec4b9a90e6ddc.zip gcc-22f6d174419e0649315049f5e2aec4b9a90e6ddc.tar.gz gcc-22f6d174419e0649315049f5e2aec4b9a90e6ddc.tar.bz2 |
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.
From-SVN: r272223
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions