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

class A {
  template <typename, typename> using _Requires = int;

public:
  template <typename _Functor, typename = _Requires<_Functor, void>>
  A(_Functor);
};
template <class T> class B {
  A f = [](T) {};
};

B<int> a;