blob: 7730f897e6b4cd1514d42ba21b130457ad3b8d10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// PR c++/61924
// { dg-do compile { target c++11 } }
struct function
{
template < typename _Functor > function (_Functor); // { dg-error "never defined" }
};
template < typename > struct RetryingRpc
{
template < typename StubType> RetryingRpc (StubType, function =[]{});
};
void fn()
{
RetryingRpc<int> rpc(0, []{});
}
|