repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-70001-3.C
blob
12c4c453e1af60c16a1b80f93a45b1b8326c59c7
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
18
foo (std::array<cd, N> &arr)
19
{
20
std::array<std::array<cd, N>, LOG + 1> f;
21
}
22
23
int
24
main ()
25
{
26
foo (a);
27
foo (b);
28
}