commit 11ab97f0fe9a7262362f4ef997562f32028e18e4
Author: Jason Merrill <jason@redhat.com>
Date: Thu Nov 8 16:17:41 2012 -0500
PR c++/54859
* pt.c (check_instantiated_arg): Don't complain about dependent args.
@@ -14362,6 +14362,8 @@ tsubst_copy_and_build (tree t,
static bool
check_instantiated_arg (tree tmpl, tree t, tsubst_flags_t complain)
{
+ if (dependent_template_arg_p (t))
+ return false;
if (ARGUMENT_PACK_P (t))
{
tree vec = ARGUMENT_PACK_ARGS (t);
new file mode 100644
@@ -0,0 +1,10 @@
+// PR c++/54859
+// { dg-options -std=c++11 }
+
+template<unsigned N>
+ using Num = int;
+
+template<typename... Types>
+ using Count = Num<sizeof...(Types)>;
+
+Count<int, char, void> i;