]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
PR c++/89767
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2019 22:01:02 +0000 (22:01 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2019 22:01:02 +0000 (22:01 +0000)
commit654b4632faffa47f3db4a317aa71d23b67a74cce
treedf1fa2daab768303053a87f6d65572c918d887e9
parent067e9a502dcaabcecda20a00b3f7c6160d8eea93
PR c++/89767
* parser.c (cp_parser_lambda_introducer): Add ids and first_capture_id
variables, check for duplicates in this function.
* lambda.c (add_capture): Don't check for duplicates nor use
IDENTIFIER_MARKED.
(register_capture_members): Don't clear IDENTIFIER_MARKED here.

* g++.dg/cpp1y/lambda-init18.C: New test.
* g++.dg/cpp1y/lambda-init19.C: New test.
* g++.dg/cpp1y/pr89767.C: New test.

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