summaryrefslogtreecommitdiff
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-16 14:15:36 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-16 14:15:36 +0000
commit93f2ac0b94df4e45f5a6f99f5165fe36a4dc412f (patch)
treeda899adfc67cc945e6f04a944f283f48b894ec88 /gcc/cp/friend.c
parentc7a1d251243e72a9bd34998ccb565ec2c43cec46 (diff)
downloadgcc-93f2ac0b94df4e45f5a6f99f5165fe36a4dc412f.tar.gz
PR c++/51148
* friend.c (make_friend_class): Call check_for_bare_parameter_packs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index e532a30e3a3..87a093a478e 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -239,6 +239,9 @@ make_friend_class (tree type, tree friend_type, bool complain)
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