summaryrefslogtreecommitdiff
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index e532a30e3a3..98cde9a1d05 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -232,13 +232,16 @@ make_friend_class (tree type, tree friend_type, bool complain)
So don't complain in C++0x mode. */
if (cxx_dialect < cxx0x)
- pedwarn (input_location, complain ? 0 : OPT_pedantic,
+ pedwarn (input_location, complain ? 0 : OPT_Wpedantic,
"invalid type %qT declared %<friend%>", friend_type);
return;
}
friend_type = cv_unqualified (friend_type);
+ if (check_for_bare_parameter_packs (friend_type))
+ return;
+
if (friend_depth)
/* If the TYPE is a template then it makes sense for it to be
friends with itself; this means that each instantiation is