https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> --- Despite investing some time in this, it seems that I cannot get a patch ready for master / reviewed and back-ported in time (although I am hopeful to get the fix sorted out in time for GCC-12) (I can confirm that my fix does still work for this - but there is just not enough time to process it through). ---- Looking at the test case and the diagnostics, it seems that PR98056 was latent here and the fix in r12-618-g14ed21f8749ae359690d9c4a69ca38cc45d0d1b0 has simply revealed it. a workaround in the example might be: auto task = g(std::make_unique<s>(std::vector{0L})); // ok co_await task;