Debian Codegraph @

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

raw
1 // PR c++/51227
2 // { dg-do compile { target c++11 } }
3
4 template<int> int foo()
5 {
6 [] (void i) { return 0; } (0); // { dg-error "incomplete|invalid|no match" }
7 return 0;
8 }
9
10 void bar()
11 {
12 foo<0>();
13 }