summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice30.C
blob: 46350bd1d52246289b65260be1fd391953c78a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/84518
// { dg-do compile { target c++11 } }

template<int> void foo()
{
  int x[=];  // { dg-error "expected" }
  [&x]{};
}

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