https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120305
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. this has nothing to do with ranges::transform_view, the problem is entirely due to iota_view https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1522r1.pdf has the background on integer-like class types.