This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r269860 - in /trunk/gcc: cp/ChangeLog cp/lambda...


Author: jakub
Date: Thu Mar 21 22:01:02 2019
New Revision: 269860

URL: https://gcc.gnu.org/viewcvs?rev=269860&root=gcc&view=rev
Log:
	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:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init18.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init19.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr89767.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/lambda.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]