Commit fecafe5e by Nathan Sidwell

apparently managed not to commit the crucial part of c++/12332

From-SVN: r71607
parent 2c49cd9e
...@@ -5280,8 +5280,13 @@ instantiate_class_template (tree type) ...@@ -5280,8 +5280,13 @@ instantiate_class_template (tree type)
|| DECL_FUNCTION_TEMPLATE_P (t)) || DECL_FUNCTION_TEMPLATE_P (t))
{ {
/* Build new TYPE_METHODS. */ /* Build new TYPE_METHODS. */
tree r;
tree r = tsubst (t, args, tf_error, NULL_TREE);
if (TREE_CODE (t) == TEMPLATE_DECL)
processing_template_decl++;
r = tsubst (t, args, tf_error, NULL_TREE);
if (TREE_CODE (t) == TEMPLATE_DECL)
processing_template_decl--;
set_current_access_from_decl (r); set_current_access_from_decl (r);
grok_special_member_properties (r); grok_special_member_properties (r);
finish_member_declaration (r); finish_member_declaration (r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment