summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-current-inst1.C
blob: a6631c5ca99c3b306847d12aabcfc248f7a0c3b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/82980
// { dg-do compile { target c++11 } }

template <class T>
struct Outer
{
  template <class U>
  void f();

  void bar(Outer outer) {
    [outer](){ outer.f<int>(); };
  }
  void baz(Outer *p) {
    [&](){ p->f<int>(); };
  }
};

int main() { }