+2014-04-15 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * decl.c (duplicate_decls): Remove redundant TYPE_NAME use.
+ * name-lookup.c (pushdecl_maybe_friend_1): Likewise.
+ (do_class_using_decl): Likewise.
+ * mangle.c (dump_substitution_candidates): Use TYPE_NAME_STRING.
+
2014-04-15 Jakub Jelinek <jakub@redhat.com>
PR plugins/59335
tree t = TREE_VALUE (t1);
if (TYPE_PTR_P (t)
- && TYPE_NAME (TREE_TYPE (t))
&& TYPE_IDENTIFIER (TREE_TYPE (t))
== get_identifier ("FILE")
&& compparms (TREE_CHAIN (t1), TREE_CHAIN (t2)))
else if (TREE_CODE (el) == TREE_LIST)
name = IDENTIFIER_POINTER (DECL_NAME (TREE_VALUE (el)));
else if (TYPE_NAME (el))
- name = IDENTIFIER_POINTER (TYPE_IDENTIFIER (el));
+ name = TYPE_NAME_STRING (el);
fprintf (stderr, " S%d_ = ", i - 1);
if (TYPE_P (el) &&
(CP_TYPE_RESTRICT_P (el)
set_underlying_type (x);
if (type != error_mark_node
- && TYPE_NAME (type)
&& TYPE_IDENTIFIER (type))
set_identifier_type_value (DECL_NAME (x), x);
}
/* Using T::T declares inheriting ctors, even if T is a typedef. */
if (MAYBE_CLASS_TYPE_P (scope)
- && ((TYPE_NAME (scope) && name == TYPE_IDENTIFIER (scope))
+ && (name == TYPE_IDENTIFIER (scope)
|| constructor_name_p (name, scope)))
{
maybe_warn_cpp0x (CPP0X_INHERITING_CTORS);