re PR c++/61924 ([C++11] ICE in instantiate_template_1, at cp/pt.c:15618)
2014-12-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61924 * g++.dg/cpp0x/pr61924.C: New. From-SVN: r218690
This commit is contained in:
parent
e0dd6391cd
commit
4573e50a83
@ -1,3 +1,8 @@
|
||||
2014-12-12 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/61924
|
||||
* g++.dg/cpp0x/pr61924.C: New.
|
||||
|
||||
2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
|
||||
|
||||
PR target/64110
|
||||
|
17
gcc/testsuite/g++.dg/cpp0x/pr61924.C
Normal file
17
gcc/testsuite/g++.dg/cpp0x/pr61924.C
Normal file
@ -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, []{});
|
||||
}
|
Loading…
Reference in New Issue
Block a user