https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102181
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|SUSPENDED |ASSIGNED Target Milestone|--- |16.0 --- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- The original testcase is missing <cstdint>, here's a slightly reduced form: #include <ranges> int main() { auto v = std::ranges::iota_view(0LL, 100LL); auto b = v.begin(); std::advance(b, 1LL); } This compiles with -std=c++20 on trunk now, because is_integral_v<__int128> is true since r16-2190-g4faa42ac0dee2c But this still fails: #include <ranges> int main() { auto v = std::ranges::iota_view((__int128)0, (__int128)10); auto b = v.begin(); std::advance(b, (__int128)1); } I have a patch though ...