commit c12c225ae102f77c6b4b1f98a69adbee474cb3a3
Author: Jason Merrill <jason@redhat.com>
Date: Mon Nov 17 16:26:45 2014 -0500
* pt.c (instantiate_template_1): Use tsubst_aggr_type for context.
@@ -15856,8 +15856,8 @@ instantiate_template_1 (tree tmpl, tree orig_args, tsubst_flags_t complain)
++processing_template_decl;
if (DECL_CLASS_SCOPE_P (gen_tmpl))
{
- tree ctx = tsubst (DECL_CONTEXT (gen_tmpl), targ_ptr,
- complain, gen_tmpl);
+ tree ctx = tsubst_aggr_type (DECL_CONTEXT (gen_tmpl), targ_ptr,
+ complain, gen_tmpl, true);
push_nested_class (ctx);
}
/* Substitute template parameters to obtain the specialization. */