pt.c (mark_template_parm): Use template_parm_level_and_index.

2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* pt.c (mark_template_parm): Use template_parm_level_and_index.

From-SVN: r209360
This commit is contained in:
Paolo Carlini 2014-04-14 09:29:09 +00:00 committed by Paolo Carlini
parent 8359c87e12
commit 8095617bca
2 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
* pt.c (mark_template_parm): Use template_parm_level_and_index.
2014-04-11 Jason Merrill <jason@redhat.com>
* parser.h (struct cp_token): Rename ambiguous_p to error_reported.

View File

@ -4028,16 +4028,7 @@ mark_template_parm (tree t, void* data)
int idx;
struct template_parm_data* tpd = (struct template_parm_data*) data;
if (TREE_CODE (t) == TEMPLATE_PARM_INDEX)
{
level = TEMPLATE_PARM_LEVEL (t);
idx = TEMPLATE_PARM_IDX (t);
}
else
{
level = TEMPLATE_TYPE_LEVEL (t);
idx = TEMPLATE_TYPE_IDX (t);
}
template_parm_level_and_index (t, &level, &idx);
if (level == tpd->level)
{