https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118491
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |15.0
Keywords| |c++-coroutines
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>Interesting part is that ICE requires a range-based loop
and a l-value reference.
Yes that is because GCC 15 implemented the C++23 for range loop changes for
temporaries and in turn broke coroutines on accident. If you notice it does not
ICE with -std=c++20 :).
Anyways this is a dup of a few other bug reports.