diff options
author | Bin Cheng <bin.cheng@linux.alibaba.com> | 2020-01-21 12:16:16 +0800 |
---|---|---|
committer | Bin Cheng <bin.cheng@linux.alibaba.com> | 2020-01-21 12:16:16 +0800 |
commit | b313d3c49c2387b5e212df22a5e6ecc0c4e95c0a (patch) | |
tree | f4dc220f6300557ea83337fa529da0cd118102a2 /gcc/tree-loop-distribution.c | |
parent | e0a5b313c1a3edfb33a28b8d8fea92e01490ebb3 (diff) | |
download | gcc-b313d3c49c2387b5e212df22a5e6ecc0c4e95c0a.zip gcc-b313d3c49c2387b5e212df22a5e6ecc0c4e95c0a.tar.gz gcc-b313d3c49c2387b5e212df22a5e6ecc0c4e95c0a.tar.bz2 |
Fix false warning messages about missing return in coroutine.
The patch sets current_function_returns_value flag in templates for
all co_return/co_yield/co_await cases, as well as for ramp function.
gcc/cp/ChangeLog
* coroutines.cc (finish_co_await_expr): Set return value flag.
(finish_co_yield_expr, morph_fn_to_coro): Ditto.
gcc/testsuite/ChangeLog
* g++.dg/coroutines/co-return-warning-1.C: New test.
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions