diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d0796b640f6..378f30973f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Paolo Carlini + + PR c++/61924 + * g++.dg/cpp0x/pr61924.C: New. + 2014-12-12 Vladimir Makarov PR target/64110 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr61924.C b/gcc/testsuite/g++.dg/cpp0x/pr61924.C new file mode 100644 index 00000000000..7730f897e6b --- /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 rpc(0, []{}); +}