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:
parent
8359c87e12
commit
8095617bca
|
@ -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.
|
||||
|
|
11
gcc/cp/pt.c
11
gcc/cp/pt.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue