aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-05-16 19:23:19 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-05-16 19:59:39 +0100
commit5ef067eb14d40337507077a8a1265a04daa8ebc1 (patch)
treed4247ec8bedb4a0a57bf11c3c6b85787de9b9421 /gcc/tree-vrp.c
parentf5b461d453043c6b6dda50db0439e4c78b241f03 (diff)
downloadgcc-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