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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr83739.C
blob
4761220c057c096981ccc1392b085d61c8d7b252
1
// { dg-do compile { target c++14 } }
2
3
// PR 83739, deduced range-for in lambda in template
4
5
template <bool> void f()
6
{
7
int x[2];
8
auto delegate = [](auto & foo)
9
{
10
for (auto bar : foo);
11
};
12
delegate(x);
13
}
14
int main() {
15
f<true>();
16
}