diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-05-03 14:20:13 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-05-08 20:45:31 +0100 |
commit | 234681eadf2c51d7b78270188d64601b7267330d (patch) | |
tree | ce8493990ed194e757ae76291a4e965858b30cac /gcc/config.gcc | |
parent | 810a2bd8784d745e1b446fb13ce56bee3be16b81 (diff) | |
download | gcc-234681eadf2c51d7b78270188d64601b7267330d.zip gcc-234681eadf2c51d7b78270188d64601b7267330d.tar.gz gcc-234681eadf2c51d7b78270188d64601b7267330d.tar.bz2 |
coroutines: Update TREE_SIDE_EFFECTS on inserted bind exprs.
There are several places where we insert bind expressions while
making the coroutine AST transforms. These should be marked as
having side-effects where relevant, which had been omitted. This
leads to at least one failure in the cppcoros test suite, where a loop
body is dropped in gimplification because it is not marked.
gcc/cp/ChangeLog:
2020-05-08 Iain Sandoe <iain@sandoe.co.uk>
PR c++/95003
* coroutines.cc (build_actor_fn): Ensure that bind scopes
are marked as having side-effects where necessary.
(replace_statement_captures): Likewise.
(morph_fn_to_coro): Likewise.
gcc/testsuite/ChangeLog:
2020-05-08 Iain Sandoe <iain@sandoe.co.uk>
PR c++/95003
* g++.dg/coroutines/torture/pr95003.C: New test.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions