1 // { dg-do compile { target c++14 } }
2 
3 // PR 83739, deduced range-for in lambda in template
4 
f()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 }
main()14 int main() {
15   f<true>();
16 }
17