diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-05-16 19:23:19 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-05-16 19:59:39 +0100 |
commit | 5ef067eb14d40337507077a8a1265a04daa8ebc1 (patch) | |
tree | d4247ec8bedb4a0a57bf11c3c6b85787de9b9421 /gcc/tree-vrp.c | |
parent | f5b461d453043c6b6dda50db0439e4c78b241f03 (diff) | |
download | gcc-5ef067eb14d40337507077a8a1265a04daa8ebc1.zip gcc-5ef067eb14d40337507077a8a1265a04daa8ebc1.tar.gz gcc-5ef067eb14d40337507077a8a1265a04daa8ebc1.tar.bz2 |
coroutines: Implicitly movable objects should use move CTORs for co_return.
This is a case where the standard contains conflicting information.
after discussion between implementators, the accepted intent is of
[class.copy.elision]. This amends the handling of co_return statements
to follow that.
gcc/cp/ChangeLog:
2020-05-16 Iain Sandoe <iain@sandoe.co.uk>
* coroutines.cc (finish_co_return_stmt): Implement rules
from [class.copy.elision] /3.
gcc/testsuite/ChangeLog:
2020-05-16 Iain Sandoe <iain@sandoe.co.uk>
* g++.dg/coroutines/co-return-syntax-10-movable.C: New test.
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions