// { dg-do compile { target c++23 } } // C++23 26.5.7 Range conversions [range.utility.conv] #include #include #include void test_2_1_5() { // (2.1.5) Otherwise, the program is ill-formed. using Alloc = __gnu_test::uneq_allocator; using Vec = std::vector; std::vector v; (void) std::ranges::to(v, v.get_allocator()); // { dg-error "here" } (void) std::ranges::to(Vec{}, 1, 2, 3, 4, 5, 6); // { dg-error "here" } } // { dg-error "static assertion failed" "" { target *-*-* } 0 } // { dg-prune-output "no matching function" }