1 // PR c++/64834
2 // { dg-do compile { target c++14 } }
3 
4 template <typename F>
e(F f)5 void e(F f)
6 {
7   f(1);
8 }
9 
10 template <int I>
bar()11 void bar() {
12     int x;
13     e([&] (const int& y) { (void)sizeof(x); });
14     e([&] (const auto& y) { (void)sizeof(x); });
15 }
16 
baz()17 void baz() { bar<1>(); }
18