| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
|
| 3 |
// PR libstdc++/110167 - excessive compile time when optimizing std::to_array |
| 4 |
|
| 5 |
#include <array> |
| 6 |
|
| 7 |
constexpr int N = 512 * 512; |
| 8 |
|
| 9 |
std::array<int, N> |
| 10 |
make_std_array(int (&a)[N]) |
| 11 |
{ |
| 12 |
return std::to_array(a); |
| 13 |
} |