aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this3.C
blob: 2defa99892350005289d58ea05781b875d84ffe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/45520
// { dg-do compile { target c++11 } }

struct M {
  int i;
};

struct S {
  M m;

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