// { dg-do compile { target c++23 } } #include struct O { O() = default; explicit O(const O&) = default; }; std::generator gen() { const O o; co_yield o; } int main() {}