https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95137
--- Comment #27 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:800dac8fca3cf75512913e380df339fa2253ba76 commit r10-8274-g800dac8fca3cf75512913e380df339fa2253ba76 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Thu Jun 11 14:11:14 2020 +0100 coroutines: Ensure distinct DTOR trees [PR95137]. Part of the PR notes that there are UBSAN fails for the coroutines test suite. These are primarily related to the use of the same DTOR tree in the two edges from the await block. Fixed by building a new tree for each. gcc/cp/ChangeLog: PR c++/95137 * coroutines.cc (expand_one_await_expression): Build separate DTOR trees for the awaitable object on the destroy and resume paths. (cherry picked from commit 006f28aefeb3be575239beddc7febe56dff463a2)