Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr61924.C

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