aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index c66b5bc..d6ea8cc 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -5381,14 +5381,16 @@ instantiate_class_template (tree type)
++processing_template_decl;
if (new_friend_type != error_mark_node)
- make_friend_class (type, new_friend_type);
+ make_friend_class (type, new_friend_type,
+ /*complain=*/false);
if (TREE_CODE (friend_type) == TEMPLATE_DECL)
--processing_template_decl;
}
else
/* Build new DECL_FRIENDLIST. */
- add_friend (type, tsubst_friend_function (t, args));
+ add_friend (type, tsubst_friend_function (t, args),
+ /*complain=*/false);
}
}