r275139 - in /branches/gcc-7-branch/gcc: cp/Cha...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Fri Aug 30 12:29:00 GMT 2019


Author: jakub
Date: Fri Aug 30 12:29:13 2019
New Revision: 275139

URL: https://gcc.gnu.org/viewcvs?rev=275139&root=gcc&view=rev
Log:
	Backported from mainline
	2019-03-21  Jakub Jelinek  <jakub@redhat.com>

	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.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-init18.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-init19.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/pr89767.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/lambda.c
    branches/gcc-7-branch/gcc/cp/parser.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list