diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-05-16 19:23:19 +0100 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:03:33 -0300 |
commit | 0cb227752d38a274c312138c3038fee200ef284b (patch) | |
tree | 54f39e25901575d197abb50d3755ef75bec23f9f /gcc/tree-inline.c | |
parent | dd116153ae7cff64c5839da55fa4903fc64759e6 (diff) | |
download | gcc-0cb227752d38a274c312138c3038fee200ef284b.zip gcc-0cb227752d38a274c312138c3038fee200ef284b.tar.gz gcc-0cb227752d38a274c312138c3038fee200ef284b.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-inline.c')
0 files changed, 0 insertions, 0 deletions