Sign in
gnu
/
gcc
/
master
/
.
/
libstdc++-v3
/
testsuite
/
std
/
ranges
/
subrange
/
111948.cc
blob: dcc64b56def743a76ae8d02651fb7919da47ba8b [
file
] [
log
] [
blame
]
// { 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
));