1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// { dg-do run { target c++20 } } #include <ranges> void test01() { // LWG 3470 int a[3] = {1,2,3}; int* b[3] = {&a[2], &a[0], &a[1]}; auto c = std::ranges::subrange<const int*const*>(b); } int main() { test01(); }