diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr61924.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr61924.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr61924.C b/gcc/testsuite/g++.dg/cpp0x/pr61924.C new file mode 100644 index 0000000000..7730f897e6 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr61924.C @@ -0,0 +1,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, []{}); +} |