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
/
pr70338.C
blob
0c5d50b17d5fc315de56fd8fd9bb72aab46f26e9
1
// PR c++/70338
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-g" }
4
// { dg-require-effective-target alloca }
5
6
template<typename T>
7
void
8
foo (int x)
9
{
10
T a[x];
11
auto b = [&]() { for (auto &c: a) c = 0.; };
12
}
13
14
int
15
main ()
16
{
17
foo<double> (3);
18
}