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

            Bug ID: 111948
           Summary: subrange modifies a const size object
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/Gf4zWP3qT

testcase:

#include <ranges>

constexpr auto r = std::ranges::subrange(std::views::iota(0), 5);
static_assert(std::ranges::distance(r));

Reply via email to