https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101355
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=95137 Keywords| |wrong-code Ever confirmed|0 |1 CC| |iains at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed| |2021-08-30 --- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> --- the two cases seem likely related - if not actually the same. At present, I was not sure if this is a coroutines bug (and have not had time to look at it in detail). The root cause does appear to be the same - that the sanitiser is expecting the temp (D.9828 in your case) to be valid - but there is some path through the code where a suspension occurs so that this is not true. Unfortunately, I'm not familiar enough with the sanitizer code to comment on whether the proposed fix is the right one.