Home
last modified time | relevance | path

Searched refs:friend_type (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Dfriend.cc237 make_friend_class (tree type, tree friend_type, bool complain) in make_friend_class() argument
275 while (uses_template_parms_level (friend_type, friend_depth + 1)) in make_friend_class()
279 if (! MAYBE_CLASS_TYPE_P (friend_type) in make_friend_class()
280 && TREE_CODE (friend_type) != TEMPLATE_TEMPLATE_PARM) in make_friend_class()
289 "invalid type %qT declared %<friend%>", friend_type); in make_friend_class()
293 friend_type = cv_unqualified (friend_type); in make_friend_class()
295 if (check_for_bare_parameter_packs (friend_type)) in make_friend_class()
302 if (CLASS_TYPE_P (friend_type) in make_friend_class()
303 && CLASSTYPE_TEMPLATE_SPECIALIZATION (friend_type) in make_friend_class()
304 && uses_template_parms (friend_type)) in make_friend_class()
[all …]
H A Dpt.cc1467 tree friend_type; in is_specialization_of_friend() local
1494 friend_type = tsubst_function_type (TREE_TYPE (friend_decl), args, in is_specialization_of_friend()
1496 if (friend_type == error_mark_node) in is_specialization_of_friend()
1500 if (!same_type_p (TREE_TYPE (decl_type), TREE_TYPE (friend_type))) in is_specialization_of_friend()
1505 friend_args_type = TYPE_ARG_TYPES (friend_type); in is_specialization_of_friend()
12334 tree friend_type = t; in instantiate_class_template_1() local
12335 if (TREE_CODE (friend_type) == TEMPLATE_DECL) in instantiate_class_template_1()
12338 friend_type = tsubst_friend_class (friend_type, args); in instantiate_class_template_1()
12340 else if (TREE_CODE (friend_type) == UNBOUND_CLASS_TEMPLATE) in instantiate_class_template_1()
12343 friend_type = tsubst (friend_type, args, in instantiate_class_template_1()
[all …]
H A DChangeLog-20163718 processing_template_decl before substituting friend_type.
/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Dfriend.c237 make_friend_class (tree type, tree friend_type, bool complain) in make_friend_class() argument
266 if (! MAYBE_CLASS_TYPE_P (friend_type) in make_friend_class()
267 && TREE_CODE (friend_type) != TEMPLATE_TEMPLATE_PARM) in make_friend_class()
276 "invalid type %qT declared %<friend%>", friend_type); in make_friend_class()
280 friend_type = cv_unqualified (friend_type); in make_friend_class()
282 if (check_for_bare_parameter_packs (friend_type)) in make_friend_class()
289 if (CLASS_TYPE_P (friend_type) in make_friend_class()
290 && CLASSTYPE_TEMPLATE_SPECIALIZATION (friend_type) in make_friend_class()
291 && uses_template_parms (friend_type)) in make_friend_class()
294 friend_type); in make_friend_class()
[all …]
H A Dpt.c1443 tree friend_type; in is_specialization_of_friend() local
1470 friend_type = tsubst_function_type (TREE_TYPE (friend_decl), args, in is_specialization_of_friend()
1472 if (friend_type == error_mark_node) in is_specialization_of_friend()
1476 if (!same_type_p (TREE_TYPE (decl_type), TREE_TYPE (friend_type))) in is_specialization_of_friend()
1481 friend_args_type = TYPE_ARG_TYPES (friend_type); in is_specialization_of_friend()
11988 tree friend_type = t; in instantiate_class_template_1() local
11991 if (TREE_CODE (friend_type) == TEMPLATE_DECL) in instantiate_class_template_1()
11994 friend_type = tsubst_friend_class (friend_type, args); in instantiate_class_template_1()
11997 else if (TREE_CODE (friend_type) == UNBOUND_CLASS_TEMPLATE) in instantiate_class_template_1()
12000 friend_type = tsubst (friend_type, args, in instantiate_class_template_1()
[all …]