Commit 03295121 by Gabriel Dos Reis Committed by Gabriel Dos Reis

pt.c (template_parms_to_args): Fix typo in comment.

	* pt.c (template_parms_to_args): Fix typo in comment.

From-SVN: r197259
parent 33c22f4a
2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
* pt.c (template_parms_to_args): Fix typo in comment.
2013-03-29 Paolo Carlini <paolo.carlini@oracle.com> 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
* call.c (build_op_call_1): Use TYPE_PTRFN_P and TYPE_REFFN_P. * call.c (build_op_call_1): Use TYPE_PTRFN_P and TYPE_REFFN_P.
......
...@@ -3874,10 +3874,10 @@ template_parms_to_args (tree parms) ...@@ -3874,10 +3874,10 @@ template_parms_to_args (tree parms)
Consider the level of the parms of TT; T and U both have Consider the level of the parms of TT; T and U both have
level 2; TT has no template parm of level 1. So in this case level 2; TT has no template parm of level 1. So in this case
the first element of full_template_args is NULL_TREE. If we the first element of full_template_args is NULL_TREE. If we
leave it like this TMPL_ARG_DEPTH on args returns 1 instead leave it like this TMPL_ARGS_DEPTH on args returns 1 instead
of 2. This will make tsubst wrongly consider that T and U of 2. This will make tsubst wrongly consider that T and U
have level 1. Instead, let's create a dummy vector as the have level 1. Instead, let's create a dummy vector as the
first element of full_template_args so that TMPL_ARG_DEPTH first element of full_template_args so that TMPL_ARGS_DEPTH
returns the correct depth for args. */ returns the correct depth for args. */
TREE_VEC_ELT (args, 0) = make_tree_vec (1); TREE_VEC_ELT (args, 0) = make_tree_vec (1);
return args; return args;
......
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