https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118874
--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Even just [...] > ICEs the same way, so this doesn't seem to be related to range for. > Does this ICE even with older gcc versions which do support coroutines (14, > 13, > 12, 11, 10)? Some of those need -fcoroutines. I've tried with local versions of g++ all the way back to gcc 10: gcc-14 down to gcc-11 do ICE indeed with -m64 -O -fcoroutines, while gcc-10 does not. Btw., the Solaris cfarm systems do have various versions of gcc installed in parallel, both bundled (in /usr/gcc/<N> with a limited set of languages) and the full monty in /opt/cfarm/gcc-* (with all supported languages), just in case.