https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93443
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:1f2e84238c9f079747804026b6225ec8c1d0e4b7 commit r10-6265-g1f2e84238c9f079747804026b6225ec8c1d0e4b7 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Mon Jan 27 10:13:09 2020 +0000 coroutines: Ensure the ramp return object is checked (PR93443). As the PR shows, there is a pathway through the code where the no_warning value is not set, which corresponds to a missing check of the ramp return when it was constructed from the 'get return object' Fixed by ensuring that the check of the return value is carried out for both return cases. gcc/cp/ChangeLog: 2020-01-27 Iain Sandoe <i...@sandoe.co.uk> PR c++/93443 * coroutines.cc (morph_fn_to_coro): Check the ramp return value when it is constructed from the 'get return object'.