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

template <typename T> struct B { using f = int; };
template <typename T, int N> struct E {
  template <typename U, typename B<E>::f = 0>
  void operator*(U l) { [l](T m) { m * l; }; }
};

int
main ()
{
  E<E<float, 4>, 1> n;
  n * 4.f;
}