https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118652
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc 15 implements c++23 range for temporaries lifetime correctly and that broke coroutines. There are a few other duplicates of this issue.