[Bug libstdc++/106766] New: zip_view::_Iterator/_Sentinel's operator- use make_unsigned_t

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Aug 28 17:31:47 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106766

            Bug ID: 106766
           Summary: zip_view::_Iterator/_Sentinel's operator- use
                    make_unsigned_t
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <ranges>

auto r = std::views::zip(
  std::views::iota(__int128(0), __int128(1)));
auto d = r.end() - r.begin();

https://godbolt.org/z/rrK1ve4o7


More information about the Gcc-bugs mailing list