Debian Codegraph @

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

raw
1 // PR c++/47049
2 // { dg-do compile { target c++11 } }
3
4 enum { E = 0, F = 1 };
5 template <int N, int M = ((N == 1) ? F : E)> class S {};
6 template <int N>
7 struct T
8 {
9 static void
10 foo (S<N> *p)
11 {
12 S<N> u;
13 [&u] ()->bool { return true; } ();
14 }
15 };
16
17 int main()
18 {
19 T<0>().foo(0);
20 }