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

iains@gcc.gnu.org iains@gcc.gnu.org
Fri Jan 25 10:04:00 GMT 2019


Author: iains
Date: Fri Jan 25 10:04:20 2019
New Revision: 268259

URL: https://gcc.gnu.org/viewcvs?rev=268259&root=gcc&view=rev
Log:
c++-coroutines Handle more cases for GRO.

Specifically, handle cases where the return object needs to be
constructed with the GRO as a parameter, and cases where the
GRO has a non-trivial dtor.

2019-01-25  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc/cp/coroutines.cc (morph_fn_to_coro): Handle GRO with a
	signature different from the function return.  Handle GRO with
	non-trivial dtor.
	* gcc/testsuite/g++.dg/coroutines/torture/co-ret-3.C: New.
	* gcc/testsuite/g++.dg/coroutines/torture/co-ret-4.C: New.


Added:
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/torture/co-ret-3.C
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/torture/co-ret-4.C
Modified:
    branches/c++-coroutines/ChangeLog.coroutines
    branches/c++-coroutines/gcc/REVISION
    branches/c++-coroutines/gcc/cp/coroutines.cc



More information about the Gcc-cvs mailing list