// { dg-do compile { target c++23 } } // LWG 4229 std::ranges::to with union return type #include union U { template U(std::from_range_t, R&&) { } int i; }; void test_lwg4229(std::ranges::subrange r) { U u = std::ranges::to(r); }