This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273300 - in /branches/c++-coroutines: ChangeLo...
- From: iains at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 09 Jul 2019 11:49:29 -0000
- Subject: r273300 - in /branches/c++-coroutines: ChangeLo...
Author: iains
Date: Tue Jul 9 11:49:29 2019
New Revision: 273300
URL: https://gcc.gnu.org/viewcvs?rev=273300&root=gcc&view=rev
Log:
c++-coroutines - Implement template instantiation for co_yield.
Initial implementation.
2019-07-09 Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/
* coroutines.cc (finish_co_yield_expr): Return early with the original
expression when we have incomplete promise type.
* pt.c (tsubst_expr): Handle CO_YIELD_EXPR.
gcc/testsuite/
* g++.dg/coroutines/torture/co-yield-3-tmpl.C: New test.
Added:
branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/torture/co-yield-3-tmpl.C
Modified:
branches/c++-coroutines/ChangeLog.coroutines
branches/c++-coroutines/gcc/cp/coroutines.cc
branches/c++-coroutines/gcc/cp/pt.c