* 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
+2012-04-16 Jason Merrill <jason@redhat.com>
+
+ PR c++/51148
+ * friend.c (make_friend_class): Call check_for_bare_parameter_packs.
+
2012-04-16 Jan Hubicka <jh@suse.cz>
* decl2.c (collect_candidates_for_java_method_alias): Use FOR_EACH
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
+2012-04-16 Jason Merrill <jason@redhat.com>
+
+ PR c++/51148
+ * g++.dg/cpp0x/variadic127.C: New.
+
2012-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/plugin-support.exp (plugin-test-execute): Properly determine
--- /dev/null
+// PR c++/51148
+// { dg-do compile { target c++11 } }
+
+template<typename... Types>
+struct S
+{};
+
+template<typename... Types>
+struct T
+{
+ friend class S<Types>; // { dg-error "parameter packs not expanded" }
+};
+
+int main()
+{}