From 4573e50a83f944b14a8756ac96603de0c51e2d6c Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 12 Dec 2014 20:30:11 +0000 Subject: [PATCH] re PR c++/61924 ([C++11] ICE in instantiate_template_1, at cp/pt.c:15618) 2014-12-12 Paolo Carlini PR c++/61924 * g++.dg/cpp0x/pr61924.C: New. From-SVN: r218690 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr61924.C | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr61924.C 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, []{}); +} -- 2.30.2