// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } // PR libstdc++/110167 - excessive compile time when optimizing std::to_array #include constexpr int N = 512 * 512; std::array make_std_array(int (&a)[N]) { return std::to_array(a); }