2015-07-09 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-ice14.C
blob77203794133f36b00f44e710637990fb432f7cae
1 // PR c++/64848
2 // { dg-do compile { target c++11 } }
4 template<typename Signature>
5 struct function;
7 template<typename R, typename... Args>
8 struct function<R (Args...)>
10   template<typename F>
11   function(const F&);
14 template<typename T>
15 class A
17   T someVar;
20 template<typename T>
21 class B
23   int x;
25   function<A<double>(A<int>&)> someLambda = [&](A<int>& aInt){
26     int xVar = x;
27     A<double> aRet;
28     return aRet;
29   };
32 B<int> a;