1 // PR c++/67838
2 // { dg-do compile { target c++14 } }
3 
4 template<bool LMode>
5 static auto TestFunc = [](int param1)
6 {
7     return param1;
8 };
9 
10 template<typename Func>
test(Func func)11 static void test(Func func)
12 {
13     func(12345);
14 }
15 
main()16 int main()
17 {
18     test(TestFunc<false>);
19     test(TestFunc<true>);
20 }
21