Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-ice5.C
blob914e0f71e009d272fcf6ffb279bd102206031174
1 // PR c++/51227
2 // { dg-do compile { target c++11 } }
4 template<int> int foo()
6   [] (void i) { return 0; } (0); // { dg-error "incomplete|invalid|no match" }
9 void bar()
11   foo<0>();