1 // PR c++/70001
2 
3 // This is still slow to compile, only run it once.
4 // { dg-do compile { target c++14_only } }
5 
6 #include <array>
7 #include <complex>
8 
9 typedef std::complex<double> cd;
10 
11 const int LOG = 17;
12 const int N = (1 << LOG);
13 
14 std::array<cd, N> a;
15 std::array<cd, N> b;
16 
17 void
foo(std::array<cd,N> & arr)18 foo (std::array<cd, N> &arr)
19 {
20   std::array<std::array<cd, N>, LOG + 1> f;
21 }
22 
23 int
main()24 main ()
25 {
26   foo (a);
27   foo (b);
28 }
29