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

iains@gcc.gnu.org iains@gcc.gnu.org
Sat Jun 22 19:47:00 GMT 2019


Author: iains
Date: Sat Jun 22 19:47:48 2019
New Revision: 272593

URL: https://gcc.gnu.org/viewcvs?rev=272593&root=gcc&view=rev
Log:
c++-coroutines - Handle function params that require constructing.

Initial handling of parameters with non-trivial constructors and/or
destructors.

2019-06-22  Iain Sandoe  <iain@sandoe.co.uk>

	gcc/cp/
	* coroutines.cc (build_actor_fn): Run DTORs for params that had
	corresponding CTORs.
	(register_param_uses): Strip references.
	(morph_fn_to_coro): Where the type of a param requires constucting
	build a placement new for the frame entry constructed from the
	param.  Pass the list of constructed entries to the actor build fn.

	gcc/testsuite/
	* g++.dg/coroutines/torture/func-params-4.C: New test.


Added:
    branches/c++-coroutines/gcc/testsuite/g++.dg/coroutines/torture/func-params-4.C
Modified:
    branches/c++-coroutines/ChangeLog.coroutines
    branches/c++-coroutines/gcc/cp/coroutines.cc



More information about the Gcc-cvs mailing list