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

struct M {
  int i;
};

struct S {
  M m;

  void f() {
    auto lambda=[&](decltype(m.i) & i) { };
  }
};