Certain implicitly generated coroutine statements, such as the calls to 'return_value()' or return_void() or get_return_object_on_allocation_failure(), cannot be built until the promise type is no longer dependent. This means they are not built until after the coroutine body statement has been transformed.
This patch fixes an issue where these statements would never be built for coroutine templates.
It also fixes a small issue where diagnostics about get_return_object_on_allocation_failure() were incorrectly suppressed.