r268807 - in /branches/c++-coroutines: ChangeLo...
iains@gcc.gnu.org
iains@gcc.gnu.org
Tue Feb 12 17:09:00 GMT 2019
Author: iains
Date: Tue Feb 12 17:09:01 2019
New Revision: 268807
URL: https://gcc.gnu.org/viewcvs?rev=268807&root=gcc&view=rev
Log:
c++-coroutines - Implement parse of co_await.
This includes testing for the promise await_transform, but not the
use of the co_await() operator yet.
2019-02-12 Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/
* constexpr.c (potential_constant_expression_1): Declare that co_await
and co_yield expressions are not candidates for constexpr.
* coroutines.cc: Reorganise text to put the parser-related functions
together. Rename co_await_context_valid_p to finish_co_await_expr.
(finish_co_await_expr): Perform the check for p.await_transform().
Use the common build_co_await() to complete the build.
* cp-tree.h: Rename co_await_context_valid_p to finish_co_await_expr.
* parser.c (cp_parser_unary_expression): Use finish_co_await_expr in
place of the temporary parse.
Modified:
branches/c++-coroutines/ChangeLog.coroutines
branches/c++-coroutines/gcc/cp/constexpr.c
branches/c++-coroutines/gcc/cp/coroutines.cc
branches/c++-coroutines/gcc/cp/cp-tree.h
branches/c++-coroutines/gcc/cp/parser.c
More information about the Gcc-cvs
mailing list