re PR c++/89767 (ICE with tuple and optimization)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Mar 2019 22:01:02 +0000 (23:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Mar 2019 22:01:02 +0000 (23:01 +0100)
commit152d47df7f625885ae972386c759330cea6b169e
treedf1fa2daab768303053a87f6d65572c918d887e9
parent36a3a7a3726c8b65eeceb6eb4a8946e0cd5650a9
re PR c++/89767 (ICE with tuple and optimization)

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.

From-SVN: r269860
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]