summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice30.C
blob: 7b0a155a31a723513cf997c33d34695f98179dea (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 "" }
  [&x]{};
}

void bar()
{
  foo<0>();			// { dg-prune-output "not declared" }
}