Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice9.C

raw
1 // PR c++/53741
2 // { dg-do compile { target c++11 } }
3
4 struct X
5 {
6 template <class T> static void bar() {}
7
8 template <class T> void foo(T p)
9 {
10 [&] { bar<T>(); };
11 }
12 };
13
14 int main()
15 {
16 X x;
17 x.foo(3);
18 }