aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-06-26 10:52:07 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-06-26 12:40:16 +0100
commite195c8045a1f3604f0f6b339e9ff731ebd9dcb0e (patch)
tree7fb5eb0074fd3aa582864d0ffd646dd86a623679 /gcc/tree-ssa-reassoc.c
parent5b959c22bc0158faa359a5899bf46e815dc65290 (diff)
downloadgcc-e195c8045a1f3604f0f6b339e9ff731ebd9dcb0e.zip
gcc-e195c8045a1f3604f0f6b339e9ff731ebd9dcb0e.tar.gz
gcc-e195c8045a1f3604f0f6b339e9ff731ebd9dcb0e.tar.bz2
coroutines: Handle bad g-r-o-o-a-f cases.
If we see a get_return_object_on_allocation_failure in the promise, we expect to be able to use it. If this isn't possible (because of some error in the declaration) then we need to handle the erroneous return to allow following code to complete. gcc/cp/ChangeLog: * coroutines.cc (morph_fn_to_coro): Handle error returns in building g-r-o-o-a-f expressions. gcc/testsuite/ChangeLog: * g++.dg/coroutines/coro1-allocators.h (BAD_GROOAF_STATIC): New. * g++.dg/coroutines/coro-bad-grooaf-00-static.C: New test.
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
0 files changed, 0 insertions, 0 deletions