PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr61924.C
blob7730f897e6b4cd1514d42ba21b130457ad3b8d10
1 // PR c++/61924
2 // { dg-do compile { target c++11 } }
4 struct function
6   template < typename _Functor > function (_Functor); // { dg-error "never defined" }
7 };
9 template < typename > struct RetryingRpc
11   template < typename StubType> RetryingRpc (StubType, function =[]{});
14 void fn()
16   RetryingRpc<int> rpc(0, []{});