summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice4.C
blob: 77c773bbdb3d38aec4d280a49b24ea9558f3f28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/47242
// { dg-options "-std=c++0x" }

template < typename > void
bar ()
{
  [i]{}; // { dg-error "declared|invalid" }
}

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