blob: dcc64b56def743a76ae8d02651fb7919da47ba8b (
plain)
1
2
3
4
5
6
7
8
|
// { dg-do compile { target c++20 } }
#include <ranges>
// Bug libstdc++/111948 - subrange modifies a const size object
constexpr auto r = std::ranges::subrange(std::views::iota(0), 5);
static_assert(std::ranges::distance(r));
|