https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367
--- Comment #1 from Noah Watkins <noah at vectorized dot io> --- In the reproducer there are no errors for: generator<int> f() { co_yield resource{[]{}}; } but `free(): invalid pointer` occurs for: generator<int> f() { std::string s; co_yield resource{[s]{}}; }