Message ID | 52175FE1.9060409@oracle.com |
---|---|
State | New |
Headers | show |
Index: pt.c =================================================================== --- pt.c (revision 201927) +++ pt.c (working copy) @@ -8658,7 +8658,15 @@ instantiate_class_template_1 (tree type) /* Determine what specialization of the original template to instantiate. */ - t = most_specialized_class (type, templ, tf_warning_or_error); + + if (push_tinst_level (type)) + { + t = most_specialized_class (type, templ, tf_warning_or_error); + pop_tinst_level (); + } + else + t = error_mark_node; + if (t == error_mark_node) { TYPE_BEING_DEFINED (type) = 1;