Commit 32f4f719 by Richard Kenner Committed by Richard Kenner

cxx-pretty-print.c (pp_cxx_unqualified_id): Use TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS.

	* cxx-pretty-print.c (pp_cxx_unqualified_id): Use
	TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS.
	* search.c (dfs_unuse_fields): Add two more TREE_CODES that mean
	the field is named TEMPLATE_TYPE_PARM_INDEX.

From-SVN: r79683
parent 0c619666
2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* cxx-pretty-print.c (pp_cxx_unqualified_id): Use
TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS.
* search.c (dfs_unuse_fields): Add two more TREE_CODES that mean
the field is named TEMPLATE_TYPE_PARM_INDEX.
2004-03-19 Giovanni Bajo <giovannibajo@gcc.gnu.org> 2004-03-19 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/14545 PR c++/14545
......
...@@ -184,7 +184,7 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t) ...@@ -184,7 +184,7 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t)
break; break;
case TEMPLATE_TYPE_PARM: case TEMPLATE_TYPE_PARM:
t = TYPE_FIELDS (t); t = TEMPLATE_TYPE_PARM_INDEX (t);
case TEMPLATE_PARM_INDEX: case TEMPLATE_PARM_INDEX:
pp_cxx_unqualified_id (pp, TEMPLATE_PARM_DECL (t)); pp_cxx_unqualified_id (pp, TEMPLATE_PARM_DECL (t));
break; break;
......
...@@ -2258,7 +2258,9 @@ dfs_unuse_fields (tree binfo, void *data ATTRIBUTE_UNUSED) ...@@ -2258,7 +2258,9 @@ dfs_unuse_fields (tree binfo, void *data ATTRIBUTE_UNUSED)
fields = TYPENAME_TYPE_FULLNAME (type); fields = TYPENAME_TYPE_FULLNAME (type);
else if (TREE_CODE (type) == TYPEOF_TYPE) else if (TREE_CODE (type) == TYPEOF_TYPE)
fields = TYPEOF_TYPE_EXPR (type); fields = TYPEOF_TYPE_EXPR (type);
else if (TREE_CODE (type) == TEMPLATE_TYPE_PARM) else if (TREE_CODE (type) == TEMPLATE_TYPE_PARM
|| TREE_CODE (type) == TEMPLATE_TEMPLATE_PARM
|| TREE_CODE (type) == BOUND_TEMPLATE_TEMPLATE_PARM)
fields = TEMPLATE_TYPE_PARM_INDEX (type); fields = TEMPLATE_TYPE_PARM_INDEX (type);
else else
fields = TYPE_FIELDS (type); fields = TYPE_FIELDS (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