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

template <typename> void a() {
  int b;
  auto &c = b;
  [&] {
    c;
    [&] { c; };
  };
}
void d() { a<int>(); }