https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95137
--- Comment #30 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Rafael Avila de Espindola from comment #29) > Created attachment 48771 [details] > Testcase without lambda coroutines > > I modified the testcase to also build with clang and not depend on async > lambdas. This still reproduces the problem with gcc with undefined behaviour > sanitizer, but works with with clang and sanitizers and gcc with valgrind. thanks, I think I have a fix for this locally - but not ready to post just yet.