view gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/70001

// This is still slow to compile, only run it once.
// { dg-do compile { target c++14_only } }

#include <array>
#include <complex>

typedef std::complex<double> cd;

const int LOG = 17;
const int N = (1 << LOG);

std::array<cd, N> a;
std::array<cd, N> b;

void
foo (std::array<cd, N> &arr)
{
  std::array<std::array<cd, N>, LOG + 1> f;
}

int
main ()
{
  foo (a);
  foo (b);
}