Commit 9c65eeca by Jason Merrill Committed by Jason Merrill

* pt.c (complete_template_args): Initialize skip properly.

From-SVN: r18791
parent b3709d9b
Mon Mar 23 12:24:37 1998 Jason Merrill <jason@yorick.cygnus.com> Mon Mar 23 12:24:37 1998 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (complete_template_args): Initialize skip properly.
* decl.c (make_typename_type): Revert. * decl.c (make_typename_type): Revert.
(make_implicit_typename): Remove. (make_implicit_typename): Remove.
(lookup_name_real): Don't call it. Call lookup_field if we see a (lookup_name_real): Don't call it. Call lookup_field if we see a
......
...@@ -411,10 +411,9 @@ complete_template_args (tmpl, extra_args, unbound_only) ...@@ -411,10 +411,9 @@ complete_template_args (tmpl, extra_args, unbound_only)
new_args = make_tree_vec (depth + 1); new_args = make_tree_vec (depth + 1);
if (! is_member_template (tmpl)) /* If this isn't a member template, extra_args is for the innermost
/* If this isn't a member template, extra_args is for the innermost template class, so skip over it. */
template class, so skip over it. */ skip = (! is_member_template (tmpl));
skip = 1;
type = DECL_REAL_CONTEXT (tmpl); type = DECL_REAL_CONTEXT (tmpl);
for (i = depth; i; type = TYPE_CONTEXT (type)) for (i = depth; i; type = TYPE_CONTEXT (type))
......
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