/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr64382.C
blob8f2e931e0486b613023782c3bb2e87aa7df48441
1 // PR c++/64382
2 // { dg-do compile { target c++14 } }
4 template<typename T>
5 struct my_queue
7   void push(T)
8   {
9   }
10   void ice()
11   {
12     auto L = [=](auto &&v) {
13       push(v);
14     };
15     trav(L);
16   }
17   template<typename F>
18   void trav(F &&f)
19   {
20     f(T());
21   }
23 template struct my_queue<int>;