--- gcc/cp/pt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 3847a1d..fbdd8ec6 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -18847,6 +18847,9 @@ instantiate_decl (tree d, int defer_ok, tree fn_context; bool nested; + if (TREE_CODE (d) == TEMPLATE_DECL) + return d; + /* This function should only be used to instantiate templates for functions and static member variables. */ gcc_assert (VAR_OR_FUNCTION_DECL_P (d)); -- 1.8.3
- [C++14/lambda] Experimental polymorphic lambda patches Adam Butcher
- [PATCH 1/4] [lambda] [polymorphic] Support template-... Adam Butcher
- [PATCH 2/4] [lambda] [polymorphic] Support generic l... Adam Butcher
- [PATCH 4/4] [lambda] [polymorphic] [HACK] Avoid cras... Adam Butcher
- [PATCH 3/4] [lambda] [polymorphic] Infer template pa... Adam Butcher
- [PATCH] [debug] Added DEBUG_FUNCTION void dump_backt... Adam Butcher
- Re: [C++14/lambda] Experimental polymorphic lambda p... Jason Merrill
- Re: [C++14/lambda] Experimental polymorphic lamb... Gabriel Dos Reis
- Re: [PATCH] [lambda] Extract lambda function... Jason Merrill
- Re: [C++14/lambda/impicit-templates] Experimenta... Adam Butcher
- [PATCH 1/3] [lambda] Support template-parame... Adam Butcher
- Re: [PATCH 1/3] [lambda] Support templat... Jason Merrill
- Re: [C++14/lambda/impicit-templates... Adam Butcher