Lines Matching defs:d1
4495 lookup_template_class (tree d1,
4507 if (TREE_CODE (d1) == IDENTIFIER_NODE)
4509 tree value = innermost_non_namespace_value (d1);
4516 template = lookup_name (d1);
4524 else if (TREE_CODE (d1) == TYPE_DECL && IS_AGGR_TYPE (TREE_TYPE (d1)))
4526 tree type = TREE_TYPE (d1);
4536 d1 = DECL_NAME (template);
4539 else if (TREE_CODE (d1) == ENUMERAL_TYPE
4540 || (TYPE_P (d1) && IS_AGGR_TYPE (d1)))
4542 template = TYPE_TI_TEMPLATE (d1);
4543 d1 = DECL_NAME (template);
4545 else if (TREE_CODE (d1) == TEMPLATE_DECL
4546 && TREE_CODE (DECL_TEMPLATE_RESULT (d1)) == TYPE_DECL)
4548 template = d1;
4549 d1 = DECL_NAME (template);
4557 error ("%qT is not a template", d1);
4569 error ("non-template type %qT used as a template", d1);