aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice5.C
blob: 305db812d82cbae968ffd406e805106a3e9a2bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/51227
// { dg-options "-std=c++0x" }

template<int> int foo()
{
  [] (void i) { return 0; } (0); // { dg-error "incomplete|invalid|no match" }
}

void bar()
{
  foo<0>();
}