1.cc 261 B

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