r268500 - in /branches/c++-coroutines: ChangeLo...

iains@gcc.gnu.org iains@gcc.gnu.org
Sun Feb 3 17:21:00 GMT 2019


Author: iains
Date: Sun Feb  3 17:21:07 2019
New Revision: 268500

URL: https://gcc.gnu.org/viewcvs?rev=268500&root=gcc&view=rev
Log:
c++-coroutines - Parse co_yield, diagnose basic issues.

2019-02-03  Iain Sandoe  <iain@sandoe.co.uk>

	gcc/cp/
	* parser.c (required_token): Add RT_CO_YIELD.
	(cp_parser_yield_expression): New.
	(cp_parser_assignment_expression): Handle co_yield.
	(cp_parser_required_error): Handle RT_CO_YIELD.

	gcc/testsuite/
	* g++.dg/coroutines/co-yield-syntax-1.C: New.
	* g++.dg/coroutines/co-yield-syntax-2.C: New.
	* g++.dg/coroutines/co-yield-syntax-3.C: New.
	* g++.dg/coroutines/coro-missing-promise-yield.C: New.	


Added:
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/co-yield-syntax-1.C
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/co-yield-syntax-2.C
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/co-yield-syntax-3.C
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/coro-missing-promise-yield.C
Modified:
    branches/c++-coroutines/ChangeLog.coroutines
    branches/c++-coroutines/gcc/cp/parser.c



More information about the Gcc-cvs mailing list