https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95137
Rafael Avila de Espindola <rafael at espindo dot la> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #48723|0 |1 is obsolete| | --- Comment #29 from Rafael Avila de Espindola <rafael at espindo dot la> --- Created attachment 48771 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48771&action=edit 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.